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 = "纹路")
|
||||
private Boolean texture;
|
||||
private Integer texture;
|
||||
|
||||
|
||||
@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.toJsonString;
|
||||
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.system.enums.ErrorCodeConstants.*;
|
||||
/**
|
||||
@@ -260,7 +259,14 @@ public class PlateServiceImpl implements PlateService {
|
||||
@Override
|
||||
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())) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user