feat: ebom异常状态下不允许生成虚拟包
This commit is contained in:
parent
6e3e65e453
commit
c5dacdbec8
|
|
@ -645,9 +645,12 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
@Transactional(rollbackFor = Exception.class)
|
||||
public void generateVirtualPackage(VirtualPackageParamDto paramDto) {
|
||||
try {
|
||||
|
||||
|
||||
BomNewEbomParentEntity root = this.getById(paramDto.getBomRowId());
|
||||
|
||||
VUtils.isTure(Objects.isNull(root)).throwMessage("不存在的bom");
|
||||
VUtils.isTure(!Objects.equals(root.getExceptionStatus(), EBomExceptionStatusEnum.OK.getValue()))
|
||||
.throwMessage("异常状态下不允许生成虚拟包");
|
||||
|
||||
LogRecordContext.putVariable("bom", root);
|
||||
//初始化虚拟包-判断枚举(不是手工生成虚拟包的情况)
|
||||
checkAndInitVirtualPackageEnum(paramDto, root);
|
||||
|
|
|
|||
Loading…
Reference in New Issue