|
@@ -180,8 +180,10 @@ public class GroupManagementServiceImpl implements GroupManagementService {
|
|
|
if (StringUtils.isEmpty(infos)) {
|
|
|
return groupTreeInfoVOList;
|
|
|
}
|
|
|
+ //将infos字段整个给转为map,后续匹配的时候时间复杂度为1。
|
|
|
Map<String, String> infoMap = Arrays.stream(infos.split(COMMA))
|
|
|
.collect(Collectors.toMap(key-> key, value->value, (e1, e2) -> e1));
|
|
|
+ //获取分组树
|
|
|
List<GroupTreeVO> groupTreeVOList = getGroupTree();
|
|
|
GroupTreeInfoVO infoVO = new GroupTreeInfoVO();
|
|
|
if(CollectionUtils.isEmpty(groupTreeVOList)){
|