修复bug

This commit is contained in:
18942506660
2024-01-04 16:33:22 +08:00
parent 1b0bf3a9c9
commit 2c4f9cdbd8
3 changed files with 11 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ namespace WMS.Web.Repositories
.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 })
.OrderByDescending(o => o.detail.Id)
.Where(adv => 1 == 1);
.Where(adv => 1 == 1 && adv.detail.FinalQty > 0);
if (!string.IsNullOrEmpty(dto.MaterialNumber))
query = query.Where(w => mIds.Contains(w.detail.MaterialId));