src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java
@@ -298,7 +298,7 @@ throw new RuntimeException("产品库存不存在"); } BigDecimal remainingQty = stockInventoryDto.getQualitity(); BigDecimal remainingQty = stockInventoryDto.getQualitity() == null ? BigDecimal.ZERO : stockInventoryDto.getQualitity(); for (StockInventory stockInventory : stockInventories) { BigDecimal lockedQty = defaultDecimal(stockInventory.getLockedQuantity()); BigDecimal availableQty = defaultDecimal(stockInventory.getQualitity()).subtract(lockedQty);