移箱-箱库存变更-优化

This commit is contained in:
tongfei
2023-12-29 10:54:16 +08:00
parent 1554afbbf5
commit 141837da18
6 changed files with 96 additions and 35 deletions

View File

@@ -79,7 +79,7 @@ namespace WMS.Web.Repositories
.SelectMany(x => x.orders.DefaultIfEmpty(), (p, order) => new { p.detail, order })
.GroupJoin(_context.Box, p => p.order.BoxId, t => t.Id, (p, ts) => new { p.detail,p.order, ts })
.SelectMany(x => x.ts.DefaultIfEmpty(), (p, box) => new { p.detail, p.order, box })
.Where(adv => 1 == 1 && adv.detail.Qty!=0);
.Where(adv => 1 == 1 && adv.detail.Qty!=0 );
if (!string.IsNullOrEmpty(dto.BoxBillNo))
query = query.Where(w => EF.Functions.Like(w.box.BoxBillNo, "%" + dto.BoxBillNo + "%"));