mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
系统配置参数修改,新增空小板错误提示更改
This commit is contained in:
+7
-1
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user