gongchunyi
14 小时以前 26e295956b81d6bfe5f181f040bf8ecd0079ba54
src/main/java/com/ruoyi/productionPlan/controller/ProductionPlanController.java
@@ -16,6 +16,7 @@
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.util.List;
/**
@@ -56,6 +57,10 @@
       if (productionPlanDto.getIds() == null || productionPlanDto.getIds().isEmpty()) {
            return AjaxResult.error("请选择要下发的生产计划");
        }
       if (productionPlanDto.getTotalAssignedQuantity() == null || productionPlanDto.getTotalAssignedQuantity().compareTo(BigDecimal.ZERO) <= 0) {
            return AjaxResult.error("请输入下发数量");
        }
        return AjaxResult.success(productionPlanService.combine(productionPlanDto));
    }