查询条件修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
Hewt 2026-03-20 14:13:15 +08:00
parent 396244f044
commit 22730f063c
2 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,8 @@ public class SegmentationQuery:PageInput
public string? SegmentationName { get; set; }
public Guid? Id { get; set; }
public Guid? SeriesId { get; set; }
public Guid? StudyId { get; set; }

View File

@ -44,6 +44,7 @@ public class SegmentationService(IRepository<Segmentation> _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)