From 05203d67168b7182a24b9ec7c617724695ff0b7a Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Fri, 11 Jul 2025 09:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=97=E8=AF=95=E8=80=85=E9=9A=8F=E6=9C=BAbu?= =?UTF-8?q?g=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/ImageAndDoc/DownloadAndUploadService.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs index 02352d3f2..5ea746493 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs @@ -903,9 +903,11 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc var query = _visitTaskRepository.Where(t => t.SubjectId == subjectId && t.TrialReadingCriterionId == inQuery.TrialReadingCriterionId && t.SourceSubjectVisitId != null && t.DoctorUserId == doctorUserId) - //满足 有序,或者随机只看到当前任务的dicom 非dicom检查 - .WhereIf(inQuery.VisitTaskId == null, t => t.TaskState == TaskState.Effect)//从待阅列表进入,要筛选出有效的,任务可能重阅了,也要看到该任务的的 + //满足 有序,或者随机只看到当前任务的dicom 非dicom检查 + .WhereIf(inQuery.VisitTaskId == null, t => t.TaskState == TaskState.Effect)//从待阅列表进入,要筛选出有效的,任务可能重阅了,也要看到该任务的 .WhereIf(criterionInfo.IsReadingTaskViewInOrder != ReadingOrder.SubjectRandom && inQuery.VisitTaskId != null, t => t.Id == inQuery.VisitTaskId) + .WhereIf(taskState == TaskState.Effect || taskState == TaskState.Freeze, t => t.TaskState == TaskState.Effect)//subject 随机可能当前阅片人有退回任务,此时传递了任务Id,但是要看整个subject得,要只留生效的 + .WhereIf(!(taskState == TaskState.Effect || taskState == TaskState.Freeze), t => t.Id == inQuery.VisitTaskId) //非生效只查当前任务 .ProjectTo(_mapper.ConfigurationProvider); //这里过滤是否是一致性分析的 @@ -1006,11 +1008,11 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc u.StudyTime, u.StudyCode, - SeriesList = u.SeriesList.Select(z => new + SeriesList = u.SeriesList.Where(t => t.IsReading).Select(z => new { z.Modality, - InstancePathList = z.DicomInstanceList.Select(k => new + InstancePathList = z.DicomInstanceList.Where(t => t.IsReading).Select(k => new { k.Path, k.FileSize @@ -1021,13 +1023,14 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc NoneDicomStudyList = sv.NoneDicomStudyList.Where(t => isQueryNoneDicom ? inQuery.NoneDicomStudyIdList.Contains(t.Id) : false) .Where(t => info.IsImageFilter ? ("|" + info.CriterionModalitys + "|").Contains("|" + t.Modality + "|") : true) + .Where(t => t.IsReading) .Select(nd => new { nd.Modality, nd.StudyCode, nd.ImageDate, - FileList = nd.NoneDicomFileList.Select(file => new + FileList = nd.NoneDicomFileList.Where(t => t.IsReading).Select(file => new { file.FileName, file.Path,