fixed: 分组数据丢失.

This commit is contained in:
lijiahangmax
2023-12-25 23:34:51 +08:00
parent f7cbd7b507
commit ad914eb7bb

View File

@@ -49,8 +49,7 @@ public class TreeUtils {
.collect(Collectors.toList());
// 如果为空 或者唯一的元素为 rootId 直接返回
if (parentIdList.isEmpty()
|| parentIdList.size() == 1
|| parentIdList.get(0).equals(Const.ROOT_PARENT_ID)) {
|| (parentIdList.size() == 1 && parentIdList.get(0).equals(Const.ROOT_PARENT_ID))) {
return;
}
// 递归