fix: 顶级数据不检查项目类别是否为空

This commit is contained in:
曹鹏飞 2024-04-21 10:42:22 +08:00
parent 007cb34971
commit d4075470f6
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ public class CheckEBomException {
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_4.getValue());
} else if (StrUtil.isNotBlank(vo.getMaterialNo()) && Objects.isNull(vo.getMaterialState())) {
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_7.getValue());
} else if (StrUtil.isBlank(vo.getProjectType()) && (vo.getRootIs() == null || vo.getRootIs() == 0)) {
} else if (StrUtil.isBlank(vo.getProjectType())
&& (Objects.equals(vo.getRootIs(), 0) && Objects.equals(vo.getUserRootIs(), 0) && Objects.equals(vo.getRootIsForWaitReview(), 0))) {
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_8.getValue());
} else if (StrUtil.isNotBlank(vo.getNoticeNums()) && EBomExceptionStatusEnum.EXCEPT_NO_11.equalsValue(vo.getExceptionStatus())) {
vo.setExceptionStatus(EBomExceptionStatusEnum.OK.getValue());