fix: 生成虚拟包时判断是否有异常排除项目类型为空的异常
This commit is contained in:
parent
698e40c1c4
commit
abd6a0742d
|
|
@ -786,7 +786,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
checkAndInitVirtualPackageEnum(paramDto, root);
|
||||
|
||||
VUtils.isTure(root.getVirtrualPackageEnum() > 0).throwMessage("已生成过虚拟包,不能2次生成");
|
||||
VUtils.isTure(!Objects.equals(root.getExceptionStatus(), EBomExceptionStatusEnum.OK.getValue()))
|
||||
VUtils.isTure(!Objects.equals(root.getExceptionStatus(), EBomExceptionStatusEnum.OK.getValue())
|
||||
&& !Objects.equals(root.getExceptionStatus(), EBomExceptionStatusEnum.EXCEPT_NO_8.getValue()))
|
||||
.throwMessage("异常状态下不允许生成虚拟包");
|
||||
LogRecordContext.putVariable("gvbom", root);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue