优化
This commit is contained in:
@@ -94,8 +94,8 @@ namespace WMS.Web.Repositories
|
|||||||
public async Task<List<InStockTask>> GetList(List<int> ids)
|
public async Task<List<InStockTask>> GetList(List<int> ids)
|
||||||
{
|
{
|
||||||
var entitys = await _context.InStockTask
|
var entitys = await _context.InStockTask
|
||||||
.Include(s => s.Details)
|
.Include(s => s.Details.Where(x=>x.AccruedQty>0))
|
||||||
.Where(f => ids.Contains(f.Id))
|
.Where(f => ids.Contains(f.Id) && f.Details.Where(x=>x.AccruedQty>0).Count()>0)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
return entitys;
|
return entitys;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user