增加箱号返回
This commit is contained in:
@@ -216,6 +216,8 @@ namespace WMS.Web.Repositories
|
||||
var query = _context.TakeStockDetails
|
||||
.GroupJoin(_context.TakeStock, detail => detail.Fid, order => order.Id, (detail, orders) => new { detail, orders })
|
||||
.SelectMany(x => x.orders.DefaultIfEmpty(), (p, order) => new { p.detail, order })
|
||||
.GroupJoin(_context.Box, d => d.detail.BoxId, box => box.Id, (d, box) => new { d, box })
|
||||
.SelectMany(x => x.box.DefaultIfEmpty(), (p, box) => new { p.d.detail,p.d.order, box })
|
||||
.OrderByDescending(o => o.detail.Id)
|
||||
.Where(adv => 1 == 1 && adv.detail.FinalQty > 0);
|
||||
|
||||
@@ -262,6 +264,7 @@ namespace WMS.Web.Repositories
|
||||
BeforeQty = s.detail.BeforeQty,
|
||||
AfterQty = s.detail.AfterQty,
|
||||
FinalQty = s.detail.FinalQty,
|
||||
BoxBillNo=s.box.BoxBillNo,
|
||||
ResultType = s.order.ResultType.GetRemark(),
|
||||
Remark = s.detail.Remark,
|
||||
FailRemark = s.order.FailRemark,
|
||||
|
||||
Reference in New Issue
Block a user