查询条件修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
396244f044
commit
22730f063c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue