修改了些BUG

This commit is contained in:
2025-07-15 16:03:57 +08:00
parent 1051075aa6
commit c47810947b
4 changed files with 11 additions and 6 deletions

View File

@@ -96,7 +96,8 @@ 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 + "%"));