mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-09-03 06:35:25 +08:00
fix(crud): 修复isRootNode判断逻辑错误
This commit is contained in:
@@ -282,7 +282,7 @@ public interface ReactiveTreeSortEntityService<E extends TreeSortSupportEntity<K
|
||||
}
|
||||
|
||||
default boolean isRootNode(E entity) {
|
||||
return ObjectUtils.isEmpty(entity.getParentId()) || "-1".equals(String.valueOf(entity.getParentId()));
|
||||
return ObjectUtils.isEmpty(entity.getParentId()) || "-1".equals(String.valueOf(entity.getId()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user