Segment添加字段 查询修改
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2026-03-16 09:04:58 +08:00
parent b048437b37
commit 56cbe08f39
9 changed files with 22096 additions and 121 deletions
@@ -37,7 +37,14 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
{
var segmentationQueryable =_segmentationRepository
.ProjectTo<SegmentationView>(_mapper.ConfigurationProvider);
.WhereIf(inQuery.SegmentationName.IsNotNullOrEmpty(),x=>x.SegmentationName.Contains(inQuery.SegmentationName))
.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)
.WhereIf(inQuery.SubjectId != null, x => x.SubjectId == inQuery.SubjectId)
.WhereIf(inQuery.SubjectVisitId != null, x => x.TrialId == inQuery.SubjectVisitId)
.WhereIf(inQuery.VisitTaskId != null, x => x.VisitTaskId == inQuery.VisitTaskId)
.ProjectTo<SegmentationView>(_mapper.ConfigurationProvider);
var pageList= await segmentationQueryable.ToPagedListAsync(inQuery);
@@ -86,6 +93,10 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
{
var segmentQueryable = _segmentRepository
.WhereIf(inQuery.SegmentationId != null, x => x.SegmentationId == inQuery.SegmentationId)
.WhereIf(inQuery.SegmentName.IsNotNullOrEmpty(), x => x.SegmentName.Contains(inQuery.SegmentName))
.WhereIf(inQuery.VisitTaskId != null, x => x.VisitTaskId == inQuery.VisitTaskId)
.ProjectTo<SegmentView>(_mapper.ConfigurationProvider);
var pageList = await segmentQueryable.ToPagedListAsync(inQuery);