From 99649622723cafe2daa0fcf4696c9a9f77e054fc Mon Sep 17 00:00:00 2001 From: YUJT Date: Sat, 23 Apr 2022 15:58:29 +0800 Subject: [PATCH] append --- .../modules/axis/service/impl/PowerAxisStructServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java index 67c41e1..3686754 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java +++ b/epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java @@ -149,7 +149,7 @@ public class PowerAxisStructServiceImpl extends BaseServiceImpl NumConstant.ONE) { + if (structLevel - parentStructLevel > NumConstant.ONE) { throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "无法跨级添加节点"); } }