仓储查询条件添加
This commit is contained in:
@@ -13,6 +13,7 @@ using WMS.Web.Domain.Entitys;
|
||||
using WMS.Web.Domain.Infrastructure;
|
||||
using WMS.Web.Domain.IService.Public;
|
||||
using WMS.Web.Domain.Mappers;
|
||||
using WMS.Web.Domain.Values;
|
||||
using WMS.Web.Domain.Values.Single;
|
||||
using WMS.Web.Repositories.Configuration;
|
||||
|
||||
@@ -167,6 +168,20 @@ namespace WMS.Web.Repositories
|
||||
.OrderByDescending(o => o.order.Id)
|
||||
.Where(adv => 1 == 1);
|
||||
|
||||
//if (!string.IsNullOrEmpty(dto.ReceiptCustomer))
|
||||
//if (!string.IsNullOrEmpty(dto.MaterialNumber))
|
||||
if (dto.Ids.Count() > 0)
|
||||
query = query.Where(w => dto.Ids.Contains(w.detail.Id));
|
||||
if (!string.IsNullOrEmpty(dto.SourceBillNo))
|
||||
query = query.Where(w => EF.Functions.Like(w.detail.SourceBillNo, "%" + dto.SourceBillNo + "%"));
|
||||
if (dto.Type != null)
|
||||
query = query.Where(w => w.order.Type == (OrderType)dto.Type);
|
||||
if (dto.Status != null)
|
||||
query = query.Where(w => w.order.Status == (OutStockStatus)dto.Status);
|
||||
if (dto.DeliveryOrgId != null)
|
||||
query = query.Where(w => w.detail.DeliveryOrgId == dto.DeliveryOrgId);
|
||||
if (dto.StockId != null)
|
||||
query = query.Where(w => w.detail.StockId == dto.StockId);
|
||||
if (dto.CreateBeginDate != null)
|
||||
query = query.Where(w => w.order.OperateTime >= dto.CreateBeginDate);
|
||||
if (dto.CreateEndDate != null)
|
||||
|
||||
Reference in New Issue
Block a user