mirror of https://gitee.com/stylefeng/roses
修复分组不显示问题
parent
25c393f0fd
commit
e5ab118068
|
@ -230,16 +230,18 @@ public class ApiGroupServiceImpl extends ServiceImpl<ApiGroupMapper, ApiGroup> i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除空分组
|
// 如果是搜索,则删除空分组
|
||||||
Iterator<ApiGroupTreeWrapper> iterator = allApiGroupTreeWrapperList.iterator();
|
if (ObjectUtil.isNotEmpty(apiGroupRequest.getGroupName())) {
|
||||||
while (iterator.hasNext()) {
|
Iterator<ApiGroupTreeWrapper> iterator = allApiGroupTreeWrapperList.iterator();
|
||||||
ApiGroupTreeWrapper item = iterator.next();
|
while (iterator.hasNext()) {
|
||||||
if (RuleConstants.TREE_ROOT_ID.toString().equals(item.getNodeParentId()) || NodeTypeEnums.DATA_NODE.getType().equals(item.getType())) {
|
ApiGroupTreeWrapper item = iterator.next();
|
||||||
continue;
|
if (RuleConstants.TREE_ROOT_ID.toString().equals(item.getNodeParentId()) || NodeTypeEnums.DATA_NODE.getType().equals(item.getType())) {
|
||||||
} else {
|
continue;
|
||||||
Integer integer = notNullGroup.get(item.getId());
|
} else {
|
||||||
if (ObjectUtil.isEmpty(integer) || integer == 0) {
|
Integer integer = notNullGroup.get(item.getId());
|
||||||
iterator.remove();
|
if (ObjectUtil.isEmpty(integer) || integer == 0) {
|
||||||
|
iterator.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue