gongchunyi
4 天以前 100f9bc59d50d7fc332aa8874b1eee2c00a49b76
src/main/java/com/ruoyi/production/service/impl/ProductionPlanServiceImpl.java
@@ -123,9 +123,9 @@
        if (assignedQuantity == null || assignedQuantity.compareTo(BigDecimal.ZERO) <= 0) {
            throw new ServiceException("下发失败,下发数量必须大于0");
        }
        if (assignedQuantity.compareTo(totalRequiredQuantity) > 0) {
            throw new ServiceException("下发失败,下发数量不能大于计划剩余需求总量");
        }
//        if (assignedQuantity.compareTo(totalRequiredQuantity) > 0) {
//            throw new ServiceException("下发失败,下发数量不能大于计划剩余需求总量");
//        }
        // 按计划顺序分摊下发数量,收集实际参与下发的计划 ID
        BigDecimal remainingForOrderBind = assignedQuantity;