Commit 44310ce5 LN

库存数量>0时才显示到PnSearch页面

1 个父辈 49b41db2
...@@ -108,7 +108,7 @@ public class MaterialController { ...@@ -108,7 +108,7 @@ public class MaterialController {
List<InventoryItemDto> resultList = new ArrayList<>(); List<InventoryItemDto> resultList = new ArrayList<>();
//过滤掉没有库存的 //过滤掉没有库存的
for (InventoryItemDto inventoryItemDto : dtoList) { for (InventoryItemDto inventoryItemDto : dtoList) {
if(inventoryItemDto.getStockReel() > 0){ if(inventoryItemDto.getStockReel() > 0 && inventoryItemDto.getStockCount()>0) {
resultList.add(inventoryItemDto); resultList.add(inventoryItemDto);
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!