修复bug

This commit is contained in:
18942506660
2024-08-01 10:43:55 +08:00
parent a93a1585f0
commit 513a2f1a1d
2 changed files with 29 additions and 1 deletions

View File

@@ -499,7 +499,7 @@ namespace WMS.Web.Repositories
return await _context.InStockDetails
.GroupJoin(_context.Instock, detail => detail.Fid, order => order.Id, (detail, orders) => new { detail, orders })
.SelectMany(x => x.orders.DefaultIfEmpty(), (p, order) => new { p.detail, order })
.Where(x => boxIds.Contains(x.detail.BoxId) && x.order.Type != InstockType.Purchase).Select(s => s.detail.BoxId).ToListAsync();
.Where(x => boxIds.Contains(x.detail.BoxId) && x.order.Type != InstockType.Purchase && (x.detail.UnBind == null || x.detail.UnBind == false)).Select(s => s.detail.BoxId).ToListAsync();
}
public async Task<List<InStockDetails>> GetListBy(List<int> boxIds)