Commit cdb21f76 by guojuxing

登录用户查询应用ID 列表修改

parent cebc5417
package com.gic.auth.service.outer.impl;
import java.util.*;
import java.util.stream.Collectors;
import com.gic.auth.entity.TabSysBusinessFrontRes;
import com.gic.enterprise.dto.EnterpriseDTO;
......@@ -83,13 +84,14 @@ public class MenuApiServiceImpl implements MenuApiService {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "超级管理员拥有全部");
}
List<TabSysMenu> menuList = getUserMenuList(userId);
Set<String> resultSet = new HashSet<>();
Set<String> resultSet;
if (CollectionUtils.isNotEmpty(menuList)) {
for (TabSysMenu record : menuList) {
if (record.getLevel().intValue() == 1) {
resultSet.add(record.getProject());
}
}
resultSet = new HashSet<>(menuList.stream()
.filter(e -> !e.getProject().equals("gic"))
.filter(e -> e.getLevel().intValue() == 1)
.map(e -> e.getProject()).collect(Collectors.toList()));
} else {
resultSet = new HashSet<>();
}
return ServiceResponse.success(resultSet);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment