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