From 84b65ee122e61fd5f090869310239c2366464cd5 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 16 Jun 2026 11:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=9B=BE=E9=87=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=88=86=E5=89=B2=E8=B7=AF=E5=BE=84=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs | 4 ++++ .../Service/ImageAndDoc/DownloadAndUploadService.cs | 6 ++++-- IRaCIS.Core.Domain/Allocation/VisitTask.cs | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs index 26fbd7752..357dc2033 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DTO/UnionStudyViewDodel.cs @@ -849,9 +849,13 @@ namespace IRaCIS.Core.Application.Contracts public List QuestionMarkPictureList { get; set; } public List TableQuestionRowPictureList { get; set; } + + public List SegmentationFileList { get; set; } } public class TrialKeyPicturePath { + public string SegmentationName { get; set; } + public string PicturePath { get; set; } public string OtherPicturePath { get; set; } diff --git a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs index 5ac31c75b..997a2366e 100644 --- a/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs +++ b/IRaCIS.Core.Application/Service/ImageAndDoc/DownloadAndUploadService.cs @@ -1650,7 +1650,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc #endregion var query = from sv in _subjectRepository.Where(t => t.Id == inQuery.SubjectId).SelectMany(t => t.SubjectVisitList.Where(t => subjectVisitIdList.Contains(t.Id) && t.CheckState == CheckStateEnum.CVPassed)) - //一致性分析,导致查询出来两条数据 + //一致性分析,导致查询出来两条数据 join visitTask in _visitTaskRepository.Where(t => taskIdList.Contains(t.Id)) on sv.Id equals visitTask.SourceSubjectVisitId into cc from leftVisitTask in cc.DefaultIfEmpty() select new ImageDownloadDto() @@ -2004,7 +2004,7 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc public async Task> GetTrialUnreadVisitList(Guid trialId) { - var subjectVisitList = await _visitTaskRepository.Where(t => t.TrialId == trialId && t.TaskState == TaskState.Effect && t.ReadingCategory == ReadingCategory.Visit && t.ReadingTaskState != ReadingTaskState.HaveSigned && t.SourceSubjectVisitId!=null).Select(t => t.SourceSubjectVisitId) + var subjectVisitList = await _visitTaskRepository.Where(t => t.TrialId == trialId && t.TaskState == TaskState.Effect && t.ReadingCategory == ReadingCategory.Visit && t.ReadingTaskState != ReadingTaskState.HaveSigned && t.SourceSubjectVisitId != null).Select(t => t.SourceSubjectVisitId) .Distinct().ToListAsync(); return subjectVisitList; @@ -2054,6 +2054,8 @@ namespace IRaCIS.Core.Application.Service.ImageAndDoc TableQuestionRowPictureList = t.LesionList.Select(c => new TrialKeyPicturePath { PicturePath = c.PicturePath, OtherPicturePath = c.OtherPicturePath }).ToList(), + SegmentationFileList = t.SegmentationList.Select(c => new TrialKeyPicturePath { PicturePath = c.SEGUrl, SegmentationName=c.SegmentationName, OtherPicturePath = string.Empty }).ToList(), + Id = t.Id, //裁判选择结果 JudgeResultTaskId = t.JudgeVisitTask.JudgeResultTaskId, diff --git a/IRaCIS.Core.Domain/Allocation/VisitTask.cs b/IRaCIS.Core.Domain/Allocation/VisitTask.cs index 6ef559253..c1a2524de 100644 --- a/IRaCIS.Core.Domain/Allocation/VisitTask.cs +++ b/IRaCIS.Core.Domain/Allocation/VisitTask.cs @@ -10,6 +10,9 @@ public class VisitTask : BaseFullAuditEntity { #region 导航属性 + [JsonIgnore] + public List SegmentationList { get; set; } = new List(); + //针对肿瘤学任务的 导航属性,关联肿瘤学结果 [JsonIgnore] public List OncologyResultList { get; set; }