You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/service/TreeSortServiceHelper.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ private void refactorPath() {
190
190
if (old != null) {
191
191
PKnewParentId = data.getParentId();
192
192
//父节点发生变化,更新所有子节点path
193
-
if (!Objects.equals(parentId, newParentId)) {
193
+
if (newParentId != null && !newParentId.equals(parentId)) {
0 commit comments