|
|
|
@ -33,8 +33,8 @@ namespace Myshipping.Application
|
|
|
|
|
private const string STATUS_ASSOCIATION = "关联快递订单";
|
|
|
|
|
private const string STATUS_DISASSOCIATION = "取消关联快递订单";
|
|
|
|
|
private const string STATUS_DELETE = "关联快递订单已删除";
|
|
|
|
|
private const string STATUS_SEND = "快递下单";
|
|
|
|
|
private const string STATUS_CANCEL = "快递消单";
|
|
|
|
|
private const string STATUS_SEND = "快递已下单";
|
|
|
|
|
private const string STATUS_CANCEL = "快递已消单";
|
|
|
|
|
|
|
|
|
|
private readonly ILogger<ExpressDeliveryService> _logger;
|
|
|
|
|
private readonly ISysCacheService _cache;
|
|
|
|
@ -75,14 +75,14 @@ namespace Myshipping.Application
|
|
|
|
|
var entities = await _orderRep.AsQueryable().Filter(null, true)
|
|
|
|
|
.Where(x => x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false)
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.KDNO), u => u.KDNO.Contains(input.KDNO))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SJCompany), u => u.KDNO.Contains(input.SJCompany))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SJPeople), u => u.KDNO.Contains(input.SJPeople))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SJTel), u => u.KDNO.Contains(input.SJTel))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.FJCompany), u => u.KDNO.Contains(input.FJCompany))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.FJPeople), u => u.KDNO.Contains(input.FJPeople))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.FJTel), u => u.KDNO.Contains(input.FJTel))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.VESSEL), u => u.KDNO.Contains(input.VESSEL))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.VOYNO), u => u.KDNO.Contains(input.VOYNO))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SJCompany), u => u.SJCompany.Contains(input.SJCompany))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SJPeople), u => u.SJPeople.Contains(input.SJPeople))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SJTel), u => u.SJTel.Contains(input.SJTel))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.FJCompany), u => u.FJCompany.Contains(input.FJCompany))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.FJPeople), u => u.FJPeople.Contains(input.FJPeople))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.FJTel), u => u.FJTel.Contains(input.FJTel))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.VESSEL), u => u.VESSEL.Contains(input.VESSEL))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.VOYNO), u => u.VOYNO.Contains(input.VOYNO))
|
|
|
|
|
.WhereIF(input.BDate != null, u => u.Date >= input.BDate)
|
|
|
|
|
.WhereIF(input.EDate != null, u => u.Date <= input.EDate)
|
|
|
|
|
.OrderBy(PageInputOrder.OrderBuilder(input.SortField, input.DescSort))
|
|
|
|
|