This commit is contained in:
tongfei
2024-03-11 15:08:04 +08:00
parent 424aa6adaf
commit 8c36fc9399

View File

@@ -94,8 +94,8 @@ namespace WMS.Web.Repositories
public async Task<List<InStockTask>> GetList(List<int> ids)
{
var entitys = await _context.InStockTask
.Include(s => s.Details)
.Where(f => ids.Contains(f.Id))
.Include(s => s.Details.Where(x=>x.AccruedQty>0))
.Where(f => ids.Contains(f.Id) && f.Details.Where(x=>x.AccruedQty>0).Count()>0)
.ToListAsync();
return entitys;
}