修复bug

This commit is contained in:
18942506660
2023-12-07 15:48:56 +08:00
parent 4db3c144ce
commit ea8ea522d4
4 changed files with 15 additions and 6 deletions

View File

@@ -150,7 +150,10 @@ namespace WMS.Web.Repositories
if (dto.DeliveryOrgId != null)
query = query.Where(w => w.order.DeliveryOrgId == dto.DeliveryOrgId);
if (!string.IsNullOrEmpty(dto.StockCode))
query = query.Where(w => w.order.StockCode == dto.StockCode);
{
var split = dto.StockCode.Split("_$");
query = query.Where(w => w.order.StockCode == split[0] && w.order.OrgCode == split[1]);
}
if (dto.CreateBeginDate != null)
query = query.Where(w => w.order.CreateTime >= dto.CreateBeginDate);
if (dto.CreateEndDate != null)

View File

@@ -273,7 +273,10 @@ namespace WMS.Web.Repositories
if (dto.DeliveryOrgId != null)
query = query.Where(w => w.order.DeliveryOrgId == dto.DeliveryOrgId);
if (!string.IsNullOrEmpty(dto.StockCode))
query = query.Where(w => w.order.StockCode == dto.StockCode);
{
var split = dto.StockCode.Split("_$");
query = query.Where(w => w.order.StockCode == split[0] && w.order.OrgCode == split[1]);
}
if (dto.CreateBeginDate != null)
query = query.Where(w => w.order.OperateTime >= dto.CreateBeginDate);
if (dto.CreateEndDate != null)

View File

@@ -186,7 +186,10 @@ namespace WMS.Web.Repositories
if (!string.IsNullOrEmpty(dto.BillNo))
query = query.Where(w => EF.Functions.Like(w.order.BillNo, "%" + dto.BillNo + "%"));
if (!string.IsNullOrEmpty(dto.StockCode))
query = query.Where(w => w.detail.StockCode == dto.StockCode);
{
var split = dto.StockCode.Split("_$");
query = query.Where(w => w.detail.StockCode == split[0] && w.detail.OrgCode == split[1]);
}
if (dto.DateBeginDate != null)
query = query.Where(w => w.order.Date >= dto.DateBeginDate);
if (dto.DateEndDate != null)