|
|
@ -145,6 +145,7 @@ public class PowerAxisStructServiceImpl extends BaseServiceImpl<PowerAxisStructD |
|
|
|
} |
|
|
|
} else { |
|
|
|
Integer parentStructLevel = powerAxisTagService.selectStructLevelById(customerId, PowerTagCategoryEnum.STRUCT.category(), structDto.getPid()); |
|
|
|
parentStructLevel = parentStructLevel == null?0:parentStructLevel; |
|
|
|
if (structLevel - parentStructLevel.intValue() > NumConstant.ONE) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "无法跨级添加节点"); |
|
|
|
} |
|
|
|