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