From 22730f063c1ca9be7ed10910cd5e653d1625e13e Mon Sep 17 00:00:00 2001 From: Hewt <109787524@qq.com> Date: Fri, 20 Mar 2026 14:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/Dto/SegmentationViewModel.cs | 4 +++- .../Service/Reading/Segment/SegmentationService.cs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs index b6ce51987..01558d5f3 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/SegmentationViewModel.cs @@ -49,7 +49,9 @@ public class SegmentationQuery:PageInput public string? SegmentationJson { get; set; } public string? SegmentationName { get; set; } - + + public Guid? Id { get; set; } + public Guid? SeriesId { get; set; } public Guid? StudyId { get; set; } diff --git a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs index 69aba50d7..2fb4aeaf5 100644 --- a/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs +++ b/IRaCIS.Core.Application/Service/Reading/Segment/SegmentationService.cs @@ -44,6 +44,7 @@ public class SegmentationService(IRepository _segmentationReposito var segmentationQueryable =_segmentationRepository .WhereIf(inQuery.SegmentationName.IsNotNullOrEmpty(),x=>x.SegmentationName.Contains(inQuery.SegmentationName)) + .WhereIf(inQuery.Id != null, x => x.Id == inQuery.Id) .WhereIf(inQuery.TrialId != null, x => x.TrialId == inQuery.TrialId) .WhereIf(inQuery.SeriesId != null, x => x.SeriesId == inQuery.SeriesId) .WhereIf(inQuery.StudyId != null, x => x.StudyId == inQuery.StudyId)