修改代码 需要发study
parent
7324ec72ed
commit
b88b92d884
|
@ -536,6 +536,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
var clinicalDataLevelList = await _clinicalDataTrialSetRepository.Where(x => x.TrialId == inDto.TrialId && x.IsConfirm && x.UploadRole == UploadRole.CRC && x.ClinicalUploadType == ClinicalUploadType.Structuring).Select(x => x.ClinicalDataLevel).Distinct().ToListAsync();
|
||||
|
||||
var existsCRCStructuring = clinicalDataLevelList.Any(x=>x== ClinicalLevel.OncologyRead|| x == ClinicalLevel.ImageRead);
|
||||
|
||||
|
||||
ReadingSetType? readingSetType = null;
|
||||
if (clinicalDataLevelList.Contains(ClinicalLevel.ImageRead) && !clinicalDataLevelList.Contains(ClinicalLevel.OncologyRead))
|
||||
{
|
||||
|
@ -548,6 +551,7 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
|
||||
var query = _readModuleRepository.Where(x => x.TrialId == inDto.TrialId)
|
||||
.Where(x=> existsCRCStructuring)
|
||||
.WhereIf(inDto.ReadModuleId==null,x=>x.TrialReadingCriterion.IsConfirm)
|
||||
.WhereIf(inDto.ReadModuleId != null, x => x.Id == inDto.ReadModuleId)
|
||||
.WhereIf(inDto.IsCRCConfirm != null, x => x.IsCRCConfirm == inDto.IsCRCConfirm)
|
||||
|
|
Loading…
Reference in New Issue