一致性分析修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
2d8cb0c818
commit
97a5eda8f8
|
@ -843,6 +843,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
var resultQuery = _readingClinicalDataRepository.Where(x=>1==1).Select(x=> new GetReadingClinicalDataListOutDto() { });
|
||||
bool isSelfAnalysis = false;
|
||||
var otherIsSelfAnalysisList=new List<GetReadingClinicalDataListOutDto>();
|
||||
if (inDto.ReadingId == null)
|
||||
{
|
||||
var visitTask = await _visitTaskRepository.FirstOrDefaultAsync(x => x.Id == inDto.VisitTaskId);
|
||||
|
@ -893,10 +894,10 @@ namespace IRaCIS.Application.Services
|
|||
});
|
||||
|
||||
// 是否获取所有一致性分析的数据
|
||||
if(!inDto.IsGetAllConsistencyAnalysis)
|
||||
if(inDto.IsGetAllConsistencyAnalysis)
|
||||
{
|
||||
// 原来的非PDF
|
||||
var otherQuesy = _readingClinicalDataRepository.Where(x => x.SubjectId == inDto.SubjectId)
|
||||
otherIsSelfAnalysisList =await _readingClinicalDataRepository.Where(x => x.SubjectId == inDto.SubjectId)
|
||||
.WhereIf(inDto.ReadingClinicalDataId != null, x => x.Id == inDto.ReadingClinicalDataId)
|
||||
.WhereIf(inDto.ClinicalDataTrialSetId != null, x => x.ClinicalDataTrialSetId == inDto.ClinicalDataTrialSetId)
|
||||
.WhereIf(inDto.SelectIsSign, x => x.IsSign == true)
|
||||
|
@ -929,9 +930,9 @@ namespace IRaCIS.Application.Services
|
|||
Path = y.Path,
|
||||
CreateTime = y.CreateTime,
|
||||
}).ToList(),
|
||||
});
|
||||
}).ToListAsync();
|
||||
|
||||
resultQuery = resultQuery.Union(otherQuesy);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -980,6 +981,7 @@ namespace IRaCIS.Application.Services
|
|||
if (!inDto.IsOnlyGetCRCReadModule)
|
||||
{
|
||||
result = await resultQuery.ToListAsync();
|
||||
result.AddRange(otherIsSelfAnalysisList);
|
||||
}
|
||||
|
||||
var readingIds = result.Select(x => x.ReadingId).ToList();
|
||||
|
|
Loading…
Reference in New Issue