|
@ -121,8 +121,8 @@ public class ItemOutLocationServiceImpl implements ItemOutLocationService { |
|
|
if (allCount.compareTo(itemDO.getMinInventory()) == -1) { |
|
|
if (allCount.compareTo(itemDO.getMinInventory()) == -1) { |
|
|
inventoryWarningDO.setNowInventory(allCount); |
|
|
inventoryWarningDO.setNowInventory(allCount); |
|
|
QueryWrapper<InventoryWarningDO> inventoryWarningDOQueryWrapper = new QueryWrapper<>(); |
|
|
QueryWrapper<InventoryWarningDO> inventoryWarningDOQueryWrapper = new QueryWrapper<>(); |
|
|
inventoryWarningDOQueryWrapper.eq("item_number", number); |
|
|
inventoryWarningDOQueryWrapper.eq("number", number); |
|
|
inventoryWarningDOQueryWrapper.eq("item_location", locationNumber); |
|
|
inventoryWarningDOQueryWrapper.eq("location_number", locationNumber); |
|
|
inventoryWarningDOQueryWrapper.ne("procure_status", ProcureStatusEnum.YESPURCHASED.getCode()); |
|
|
inventoryWarningDOQueryWrapper.ne("procure_status", ProcureStatusEnum.YESPURCHASED.getCode()); |
|
|
List<InventoryWarningDO> inventoryWarningDOList = inventoryWarningMapper.selectList(inventoryWarningDOQueryWrapper); |
|
|
List<InventoryWarningDO> inventoryWarningDOList = inventoryWarningMapper.selectList(inventoryWarningDOQueryWrapper); |
|
|
if(inventoryWarningDOList.isEmpty()){ |
|
|
if(inventoryWarningDOList.isEmpty()){ |
|
|