修复bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user