mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
未排单-纹路查询参数类型修改,获取实际大板逻辑修改
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ public class NoPlanPlatePageReqVO extends PageParam {
|
|||||||
|
|
||||||
|
|
||||||
@Schema(description = "纹路")
|
@Schema(description = "纹路")
|
||||||
private Boolean texture;
|
private Integer texture;
|
||||||
|
|
||||||
|
|
||||||
@Schema(description = "异形")
|
@Schema(description = "异形")
|
||||||
|
|||||||
+8
-15
@@ -67,7 +67,6 @@ import static com.cf.imes.framework.common.exception.util.ServiceExceptionUtil.e
|
|||||||
import static com.cf.imes.framework.common.util.json.JsonUtils.parseObject;
|
import static com.cf.imes.framework.common.util.json.JsonUtils.parseObject;
|
||||||
import static com.cf.imes.framework.common.util.json.JsonUtils.toJsonString;
|
import static com.cf.imes.framework.common.util.json.JsonUtils.toJsonString;
|
||||||
import static com.cf.imes.framework.security.core.util.SecurityFrameworkUtils.getUserOrganId;
|
import static com.cf.imes.framework.security.core.util.SecurityFrameworkUtils.getUserOrganId;
|
||||||
import static com.cf.imes.module.executor.enums.ErrorCodeConstants.LIST_CHANGES_ARE_PROHIBITED;
|
|
||||||
import static com.cf.imes.module.executor.enums.ErrorCodeConstants.PLAN_NOT_EXISTS;
|
import static com.cf.imes.module.executor.enums.ErrorCodeConstants.PLAN_NOT_EXISTS;
|
||||||
import static com.cf.imes.module.system.enums.ErrorCodeConstants.*;
|
import static com.cf.imes.module.system.enums.ErrorCodeConstants.*;
|
||||||
/**
|
/**
|
||||||
@@ -260,7 +259,14 @@ public class PlateServiceImpl implements PlateService {
|
|||||||
@Override
|
@Override
|
||||||
public PageResult<PlateGoodDO> getGoodsPlate(GoodsPlateFilterPageReqVO pageReqVO) {
|
public PageResult<PlateGoodDO> getGoodsPlate(GoodsPlateFilterPageReqVO pageReqVO) {
|
||||||
|
|
||||||
PlanDO planDO = validatePlanExists(pageReqVO.getPlanId());
|
PlanDO planDO = planMapper.selectById(pageReqVO.getPlanId());
|
||||||
|
|
||||||
|
AssertUtils.notEmpty(planDO,PLAN_NOT_EXISTS);
|
||||||
|
|
||||||
|
if(planDO.getStatus().equals(PlanStatusEnum.OPENED.getStatus())){
|
||||||
|
throw exception(THIS_PLAN_PLATE_OPTIMIZE_IS_ALL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (planDO.getType().equals(PlanTypeEnum.MIXEDORDERPLAN.getType())) {
|
if (planDO.getType().equals(PlanTypeEnum.MIXEDORDERPLAN.getType())) {
|
||||||
|
|
||||||
@@ -535,18 +541,5 @@ public class PlateServiceImpl implements PlateService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private PlanDO validatePlanExists(Long id) {
|
|
||||||
PlanDO planDO = planMapper.selectById(id);
|
|
||||||
|
|
||||||
AssertUtils.notEmpty(planDO,PLAN_NOT_EXISTS);
|
|
||||||
|
|
||||||
if(planDO.getStatus().equals(PlanStatusEnum.OPENING.getStatus()) || planDO.getStatus().equals(PlanStatusEnum.OPENED.getStatus())){
|
|
||||||
throw exception(LIST_CHANGES_ARE_PROHIBITED);
|
|
||||||
}
|
|
||||||
|
|
||||||
return planDO;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
+1
@@ -329,6 +329,7 @@ public class ErrorCodeConstants {
|
|||||||
public static final ErrorCode THIS_PLAN_OPTIMIZE_DATA_ERROR = new ErrorCode(1_002_041_044, "当前排单已全部开料,无法进行再次优化");
|
public static final ErrorCode THIS_PLAN_OPTIMIZE_DATA_ERROR = new ErrorCode(1_002_041_044, "当前排单已全部开料,无法进行再次优化");
|
||||||
|
|
||||||
|
|
||||||
|
public static final ErrorCode THIS_PLAN_PLATE_OPTIMIZE_IS_ALL = new ErrorCode(1_002_041_046, "当前排单已全部开料,无法进行选择");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user