删除历史sql
This commit is contained in:
@@ -965,7 +965,6 @@ namespace IRaCIS.Core.Application.Service.Allocation
|
||||
else
|
||||
{
|
||||
var taskQuery = _visitTaskRepository.Where(x => x.TrialId == inQuery.TrialId && x.DoctorUserId == _userInfo.Id && x.TaskState == TaskState.Effect && x.TrialReadingCriterionId == trialReadingCriterionId)
|
||||
// .Where(x=>x.Subject.ClinicalDataList.Any(c => c.IsSign && (c.ReadingId == x.SouceReadModuleId || c.ReadingId == x.SourceSubjectVisitId)))
|
||||
.Where(x => !x.Subject.IsDeleted).Where(x => (x.IsNeedClinicalDataSign && x.IsClinicalDataSign) || !x.IsNeedClinicalDataSign);
|
||||
|
||||
iRUnReadOut = new IRUnReadOutDto()
|
||||
|
||||
@@ -65,40 +65,7 @@ namespace IRaCIS.Core.Application.Triggers
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// 触发临床数据
|
||||
//if (context.ChangeType == ChangeType.Added)
|
||||
//{
|
||||
// var cRCClinicalDatas = await _clinicalDataTrialSetRepository.Where(x => x.TrialId == context.Entity.TrialId && x.UploadRole == UploadRole.CRC && x.IsConfirm)
|
||||
|
||||
// .Select(x => new
|
||||
// {
|
||||
// x.Id,
|
||||
// x.ClinicalDataLevel,
|
||||
// }).ToListAsync();
|
||||
|
||||
// List<ReadingClinicalData> readingClinicals = new List<ReadingClinicalData>();
|
||||
// readingClinicals.AddRange(
|
||||
|
||||
// cRCClinicalDatas.WhereIf(!context.Entity.IsBaseLine, x => x.ClinicalDataLevel == ClinicalLevel.SubjectVisit).Select(x => new ReadingClinicalData()
|
||||
// {
|
||||
// ClinicalDataTrialSetId = x.Id,
|
||||
// IsVisit = true,
|
||||
// SubjectId = context.Entity.SubjectId,
|
||||
// ReadingId = context.Entity.Id,
|
||||
// TrialId = context.Entity.TrialId
|
||||
|
||||
// }).ToList()
|
||||
|
||||
// );
|
||||
|
||||
|
||||
// await _readingClinicalDataRepository.AddRangeAsync(readingClinicals);
|
||||
// await _readingClinicalDataRepository.SaveChangesAsync();
|
||||
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user