系统配置参数修改,新增空小板错误提示更改

This commit is contained in:
liuzhaotian
2024-07-24 17:20:26 +08:00
parent 320b6966fc
commit 9ce3d2e57a
6 changed files with 24 additions and 12 deletions
@@ -63,7 +63,7 @@ import static com.cf.imes.framework.common.exception.enums.GlobalErrorCodeConsta
import static com.cf.imes.framework.common.exception.util.ServiceExceptionUtil.exception;
import static com.cf.imes.framework.security.core.util.SecurityFrameworkUtils.getUserOrganId;
import static com.cf.imes.module.executor.service.optimizeplan.OptimizePlanService.ORDER_PLATE_MODEL;
import static com.cf.imes.module.system.enums.ErrorCodeConstants.PLATE_NOT_EXISTS;
import static com.cf.imes.module.system.enums.ErrorCodeConstants.*;
/**
* 生产单板件 Service 实现类
@@ -261,6 +261,12 @@ public class PlateServiceImpl implements PlateService {
@Transactional(rollbackFor = Exception.class)
public List<Long> createNewPlate(OptimizationSavePlateReqVO reqVO) {
if(reqVO.getRoomId() == null || reqVO.getBodyId() == null){
throw exception(THE_CURRENT_BOARD_IS_NOT_SELECTED);
}
List<PlateDO> plateDOS = new ArrayList<>();
for (int i = 0; i < reqVO.getMultiple(); i++) {