优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user