箱库存-0的不要显示
This commit is contained in:
@@ -75,7 +75,7 @@ namespace WMS.Web.Repositories
|
|||||||
.SelectMany(x => x.orders.DefaultIfEmpty(), (p, order) => new { p.detail, order })
|
.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 })
|
.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 })
|
.SelectMany(x => x.ts.DefaultIfEmpty(), (p, box) => new { p.detail, p.order, box })
|
||||||
.Where(adv => 1 == 1);
|
.Where(adv => 1 == 1 && adv.detail.Qty!=0);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(dto.BoxBillNo))
|
if (!string.IsNullOrEmpty(dto.BoxBillNo))
|
||||||
query = query.Where(w => EF.Functions.Like(w.box.BoxBillNo, "%" + dto.BoxBillNo + "%"));
|
query = query.Where(w => EF.Functions.Like(w.box.BoxBillNo, "%" + dto.BoxBillNo + "%"));
|
||||||
|
|||||||
Reference in New Issue
Block a user