|
@@ -194,7 +194,7 @@ public class OrderApplication : IOrderApplication, IScopeDependency
|
|
|
public async Task<PagedDto<OrderDto>> GetToExpireAsync(AboutToExpireListDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
DateTime stTime = _timeLimitDomainService.WorkDay(DateTime.Now);
|
|
|
- var (total, items) = await _orderRepository.Queryable()
|
|
|
+ var (total, items) = await _orderRepository.Queryable(viewFilter:true)
|
|
|
.WhereIF(dto.IsProvince.HasValue, x => x.IsProvince == dto.IsProvince)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword), x => x.Title.Contains(dto.Keyword!) || x.No.Contains(dto.Keyword!))
|
|
|
//.WhereIF(!string.IsNullOrEmpty(dto.No), x => x.No == dto.No)
|