修复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

@@ -140,8 +140,9 @@ namespace WMS.Web.Domain.Services.Public
item.ky_qty = (item.qty ?? 0) - (item.order_lock ?? 0) + (item.virtual_qty ?? 0)
+ (item.purchase_qty ?? 0) + (item.in_qty ?? 0) + (item.return_qty ?? 0);
}
var resList = list.Where(w => w.qty > 0 || w.ky_qty > 0).ToList();
return Result<List<JuShuiTanInventoryResponse>>.ReSuccess(resList);
//这里不能过滤掉都是0的 因为要修改
//var resList = list.Where(w => w.qty > 0 || w.ky_qty > 0).ToList();
return Result<List<JuShuiTanInventoryResponse>>.ReSuccess(list);
}
/// <summary>