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