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

This commit is contained in:
Hewt
2026-03-20 14:13:15 +08:00
parent 396244f044
commit 22730f063c
2 changed files with 4 additions and 1 deletions
@@ -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; }
@@ -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)