fix(ebom): T类型物料的描述为空时,异常状态改为4
This commit is contained in:
parent
e9ed71800c
commit
16ff524b45
|
|
@ -45,9 +45,7 @@ public enum EBomExceptionStatusEnum implements ValueEnum<Integer> {
|
||||||
EXCEPT_NO_13(13, "项目类型需要用户确认") ,
|
EXCEPT_NO_13(13, "项目类型需要用户确认") ,
|
||||||
EXCEPT_NO_14(14, "黄色警告(下级节点存在异常)"),
|
EXCEPT_NO_14(14, "黄色警告(下级节点存在异常)"),
|
||||||
EXCEPT_NO_15(15, "物料名称不一致"),
|
EXCEPT_NO_15(15, "物料名称不一致"),
|
||||||
EXCEPT_NO_16(16, "物料单位不一致"),
|
EXCEPT_NO_16(16, "物料单位不一致");
|
||||||
|
|
||||||
EXCEPT_NO_17(17, "T项物料描述为空");
|
|
||||||
|
|
||||||
private final Integer value;
|
private final Integer value;
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ public class CheckEBomException {
|
||||||
// }
|
// }
|
||||||
if (StrUtil.equals(BomConstant.PROJECT_TYPE_TEMPORARY, vo.getProjectType(), true)) {
|
if (StrUtil.equals(BomConstant.PROJECT_TYPE_TEMPORARY, vo.getProjectType(), true)) {
|
||||||
if (StrUtil.isBlank(vo.getMaterialDesc())) {
|
if (StrUtil.isBlank(vo.getMaterialDesc())) {
|
||||||
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_17.getValue());
|
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_4.getValue());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (StrUtil.isNotBlank(vo.getMaterialNo())
|
if (StrUtil.isNotBlank(vo.getMaterialNo())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue