修复bug

This commit is contained in:
18942506660
2024-11-01 17:47:48 +08:00
parent 12c37bc88f
commit ec0be490e1
2 changed files with 5 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ namespace WMS.Web.Repositories
var query = _context.ProductInventory
.OrderByDescending(o => o.Id)
.Where(adv => 1 == 1);
.Where(adv => 1 == 1 && (adv.Qty > 0 || adv.BeforeQty > 0));
if (!string.IsNullOrEmpty(dto.MaterialNumber))
query = query.Where(w => mNumber.Contains(w.MaterialNumber));
@@ -220,7 +220,7 @@ namespace WMS.Web.Repositories
public async Task<List<ProductInventory>> GetEntityList(ProductInventoryType type)
{
var res = await _context.ProductInventory
.Where(f => f.Type==type)
.Where(f => f.Type == type)
.ToListAsync();
return res.Clone();