fixed: 分组数据丢失.
This commit is contained in:
@@ -49,8 +49,7 @@ public class TreeUtils {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
// 如果为空 或者唯一的元素为 rootId 直接返回
|
// 如果为空 或者唯一的元素为 rootId 直接返回
|
||||||
if (parentIdList.isEmpty()
|
if (parentIdList.isEmpty()
|
||||||
|| parentIdList.size() == 1
|
|| (parentIdList.size() == 1 && parentIdList.get(0).equals(Const.ROOT_PARENT_ID))) {
|
||||||
|| parentIdList.get(0).equals(Const.ROOT_PARENT_ID)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 递归
|
// 递归
|
||||||
|
|||||||
Reference in New Issue
Block a user