修复bug
This commit is contained in:
@@ -66,12 +66,14 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
svlist.ForEach(t =>
|
||||
{
|
||||
t.SubjectId= mapedSubject.Id,
|
||||
t.TrialId = subjectCommand.TrialId;
|
||||
t.SiteId = subjectCommand.SiteId;
|
||||
t.IsEnrollmentConfirm = t.IsBaseLine ? IsEnrollementQualificationConfirm : false;
|
||||
});
|
||||
|
||||
mapedSubject.SubjectVisitList = svlist;
|
||||
|
||||
await _subjectVisitRepository.AddRangeAsync(svlist);
|
||||
}
|
||||
else //update
|
||||
{
|
||||
@@ -239,7 +241,7 @@ namespace IRaCIS.Application.Services
|
||||
}
|
||||
|
||||
var isSuccess = await _subjectRepository.BatchDeleteAsync(u => u.Id == id);
|
||||
await _subjectVisitRepository.BatchDeleteAsync(u => u.SubjectId == id);
|
||||
await _subjectVisitRepository.TrackingBatchDeleteAsync(u => u.SubjectId == id);
|
||||
|
||||
|
||||
var subvisit = await _subjectVisitRepository.Where(x => x.SubjectId == id).ToListAsync();
|
||||
|
||||
Reference in New Issue
Block a user