| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | |
| | | if (productionPlanDto.getTotalAssignedQuantity() == null || productionPlanDto.getTotalAssignedQuantity().compareTo(BigDecimal.ZERO) <= 0) { |
| | | return R.fail("请输入下发数量"); |
| | | } |
| | | if(productionPlanDto.getWorkshopId() == null){ |
| | | throw new BaseException("请选择车间信息"); |
| | | } |
| | | return R.ok(productionPlanService.combine(productionPlanDto)); |
| | | } |
| | | |