|
@@ -582,6 +582,10 @@ public class OrderController : BaseController
|
|
x => x.VisitState == Share.Enums.Order.EVisitState.Visited)
|
|
x => x.VisitState == Share.Enums.Order.EVisitState.Visited)
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
x => x.Order.Title.Contains(dto.Keyword!) || x.Order.No.Contains(dto.Keyword!))
|
|
x => x.Order.Title.Contains(dto.Keyword!) || x.Order.No.Contains(dto.Keyword!))
|
|
|
|
+ .WhereIF(dto.FiledType != null && dto.FiledType == FiledType.CenterFiled, d => d.Order.ProcessType == EProcessType.Zhiban)
|
|
|
|
+ .WhereIF(dto.FiledType != null && dto.FiledType == FiledType.OrgFiled, d => d.Order.ProcessType == EProcessType.Jiaoban)
|
|
|
|
+ .WhereIF(dto.IsCountersign != null && dto.IsCountersign == true, d => d.Order.CounterSignType != null)
|
|
|
|
+ .WhereIF(dto.IsCountersign != null && dto.IsCountersign == false, d => d.Order.CounterSignType == null)
|
|
.OrderByDescending(x => x.PublishTime)
|
|
.OrderByDescending(x => x.PublishTime)
|
|
.ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|
|
.ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|
|
return new PagedDto<OrderVisitDto>(total, _mapper.Map<IReadOnlyList<OrderVisitDto>>(items));
|
|
return new PagedDto<OrderVisitDto>(total, _mapper.Map<IReadOnlyList<OrderVisitDto>>(items));
|
|
@@ -1235,12 +1239,12 @@ public class OrderController : BaseController
|
|
{
|
|
{
|
|
var isHandled = dto.IsApply.HasValue && dto.IsApply.Value;
|
|
var isHandled = dto.IsApply.HasValue && dto.IsApply.Value;
|
|
var (total, items) = await _orderDelayRepository
|
|
var (total, items) = await _orderDelayRepository
|
|
- .Queryable(viewFilter: true, handlerFilter: isHandled)
|
|
|
|
|
|
+ .Queryable(viewFilter: true, handlerFilter: !isHandled)
|
|
.Includes(x => x.Order)
|
|
.Includes(x => x.Order)
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword),
|
|
d => d.Order.Title.Contains(dto.Keyword!) || d.No.Contains(dto.Keyword!))
|
|
d => d.Order.Title.Contains(dto.Keyword!) || d.No.Contains(dto.Keyword!))
|
|
- .WhereIF(dto.IsApply == true, x => x.DelayState != EDelayState.Examining)
|
|
|
|
- .WhereIF(dto.IsApply == false, x => x.DelayState == EDelayState.Examining)
|
|
|
|
|
|
+ //.WhereIF(dto.IsApply == true, x => x.DelayState != EDelayState.Examining)
|
|
|
|
+ //.WhereIF(dto.IsApply == false, x => x.DelayState == EDelayState.Examining)
|
|
.WhereIF(dto.DelayState != null, x => x.DelayState == dto.DelayState)
|
|
.WhereIF(dto.DelayState != null, x => x.DelayState == dto.DelayState)
|
|
.OrderByDescending(x => x.ApplyDelayTime)
|
|
.OrderByDescending(x => x.ApplyDelayTime)
|
|
.ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|
|
.ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
|