Test.EIImageViewer
he 2022-11-25 16:54:09 +08:00
parent c7296f44df
commit ccaecf0726
1 changed files with 11 additions and 0 deletions

View File

@ -456,6 +456,17 @@ namespace IRaCIS.Application.Services
var result = await resultQuery.ToListAsync();
result = result.Where(x => !(x.ClinicalUploadType == ClinicalUploadType.PDF && x.FileList.Count() == 0)).ToList();
// 需要排除表格为空的数据
var tablecount = (await _previousHistoryRepository.Where(x => x.SubjectVisitId == inDto.ReadingId).CountAsync()) +
(await _previousOtherRepository.Where(x => x.SubjectVisitId == inDto.ReadingId).CountAsync()) +
(await _previousSurgeryRepository.Where(x => x.SubjectVisitId == inDto.ReadingId).CountAsync());
if (tablecount == 0)
{
result = result.Where(x => x.ClinicalUploadType != ClinicalUploadType.Table).ToList();
}
return result;
}