|
|
@@ -1,6 +1,7 @@
|
|
|
package com.dk.mdm.infrastructure.strategy.production.strategy;
|
|
|
|
|
|
import com.dk.common.infrastructure.constant.Constant;
|
|
|
+import com.dk.common.infrastructure.enums.ErrorCodeEnum;
|
|
|
import com.dk.common.response.ResponseCodeEnum;
|
|
|
import com.dk.common.response.ResponseResultUtil;
|
|
|
import com.dk.common.response.ResponseResultVO;
|
|
|
@@ -48,6 +49,12 @@ public class HalfCheckStrategy implements ProductionStrategy {
|
|
|
return checkRes;
|
|
|
}
|
|
|
|
|
|
+ //产品分级,在现在工艺节点的分级里
|
|
|
+ if (!processNode.getJudgeGradeIds().contains(collectCommand.getOpnGradeId())) {
|
|
|
+ return ResponseResultUtil.error(ErrorCodeEnum.COLLECT_CHECK_GRADE_NOT_IN_NODE.getCode(),
|
|
|
+ ErrorCodeEnum.COLLECT_CHECK_GRADE_NOT_IN_NODE.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
return ResponseResultUtil.success();
|
|
|
}
|
|
|
|