|
@ -32,6 +32,7 @@ import org.springframework.validation.annotation.Validated; |
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
import java.math.BigDecimal; |
|
|
import java.math.BigDecimal; |
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.Collection; |
|
|
import java.util.Collection; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
@ -126,6 +127,7 @@ public class ItemOutLocationServiceImpl implements ItemOutLocationService { |
|
|
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()){ |
|
|
|
|
|
inventoryWarningDO.setCreateTime(LocalDateTime.now()); |
|
|
result = inventoryWarningMapper.insert(inventoryWarningDO); |
|
|
result = inventoryWarningMapper.insert(inventoryWarningDO); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|