查询修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
22730f063c
commit
61c4d79fa1
|
|
@ -61,7 +61,10 @@ public class SegmentBindingAddOrEdit
|
||||||
public class SegmentBindingQuery:PageInput
|
public class SegmentBindingQuery:PageInput
|
||||||
{
|
{
|
||||||
public Guid? QuestionId { get; set; }
|
public Guid? QuestionId { get; set; }
|
||||||
|
|
||||||
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public Guid? RowId { get; set; }
|
public Guid? RowId { get; set; }
|
||||||
|
|
||||||
public Guid? SegmentId { get; set; }
|
public Guid? SegmentId { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,9 @@ public class SegmentQuery:PageInput
|
||||||
|
|
||||||
public Guid? SegmentationId { get; set; }
|
public Guid? SegmentationId { get; set; }
|
||||||
|
|
||||||
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public Guid? VisitTaskId { get; set; }
|
public Guid? VisitTaskId { get; set; }
|
||||||
|
|
||||||
public decimal? ShortAxis { get; set; }
|
public decimal? ShortAxis { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
|
||||||
.WhereIf(inQuery.SegmentationId != null, x => x.SegmentationId == inQuery.SegmentationId)
|
.WhereIf(inQuery.SegmentationId != null, x => x.SegmentationId == inQuery.SegmentationId)
|
||||||
.WhereIf(inQuery.SegmentName.IsNotNullOrEmpty(), x => x.SegmentName.Contains(inQuery.SegmentName))
|
.WhereIf(inQuery.SegmentName.IsNotNullOrEmpty(), x => x.SegmentName.Contains(inQuery.SegmentName))
|
||||||
.WhereIf(inQuery.VisitTaskId != null, x => x.VisitTaskId == inQuery.VisitTaskId)
|
.WhereIf(inQuery.VisitTaskId != null, x => x.VisitTaskId == inQuery.VisitTaskId)
|
||||||
|
.WhereIf(inQuery.Id != null, x => x.Id == inQuery.Id)
|
||||||
.ProjectTo<SegmentView>(_mapper.ConfigurationProvider);
|
.ProjectTo<SegmentView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
var pageList = await segmentQueryable.ToPagedListAsync(inQuery);
|
var pageList = await segmentQueryable.ToPagedListAsync(inQuery);
|
||||||
|
|
@ -152,6 +153,7 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
|
||||||
{
|
{
|
||||||
|
|
||||||
var segmentBindingQueryable = _segmentBindingRepository
|
var segmentBindingQueryable = _segmentBindingRepository
|
||||||
|
.WhereIf(inQuery.Id != null, x => x.Id == inQuery.Id)
|
||||||
.WhereIf(inQuery.QuestionId != null, x => x.QuestionId == inQuery.QuestionId)
|
.WhereIf(inQuery.QuestionId != null, x => x.QuestionId == inQuery.QuestionId)
|
||||||
.WhereIf(inQuery.RowId != null, x => x.RowId == inQuery.RowId)
|
.WhereIf(inQuery.RowId != null, x => x.RowId == inQuery.RowId)
|
||||||
.WhereIf(inQuery.SegmentId != null, x => x.SegmentId == inQuery.SegmentId)
|
.WhereIf(inQuery.SegmentId != null, x => x.SegmentId == inQuery.SegmentId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue