liding
2 天以前 0f8f4c5de1d817aa87c4c79e966d3cfbd0997aeb
main-business/src/main/java/com/ruoyi/business/service/impl/PendingInventoryServiceImpl.java
@@ -316,7 +316,7 @@
            // 2. 准备待入库记录
            Long userId = SecurityUtils.getUserId();
            PendingInventory pendingInventory = new PendingInventory();
            pendingInventory.setUnit("t");
            pendingInventory.setUnit("吨");
            pendingInventory.setRegistrantId(userId);
            pendingInventory.setRegistrationDate(LocalDate.now());
            pendingInventory.setSupplierName("配煤计算器方案入库");
@@ -352,7 +352,7 @@
            // 5. 设置价格和数量
            BigDecimal cost = safeGetBigDecimal(map, "cost");
            BigDecimal tonnage = safeGetBigDecimal(map, "totalTonnage");
            BigDecimal tonnage = safeGetBigDecimal(map, "createCoalQuantity");
            if (cost == null || tonnage == null) {
                throw new BaseException("成本或吨位不能为空");