【7.2.2】antdv3版本更新获取菜单接口

pull/29/head
fengshuonan 2022-05-08 21:18:00 +08:00
parent c8fa801444
commit 562b2b38ba
1 changed files with 3 additions and 2 deletions

View File

@ -591,10 +591,11 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
public List<IndexMenuInfo> buildAuthorities(Integer menuFrontType) {
// 不分离应用查询菜单
List<SysMenu> currentUserMenus = this.getCurrentUserMenus(null, false, menuFrontType);
List<SysAppResult> sortedApps = appServiceApi.getSortedApps();
List<String> appCodes = sortedApps.stream().map(SysAppResult::getAppCode).collect(Collectors.toList());
List<SysMenu> currentUserMenus = this.getCurrentUserMenus(appCodes, false, menuFrontType);
// 获取当前激活的应用
List<SysAppResult> sortedApps = appServiceApi.getSortedApps();
List<String> appNames = sortedApps.stream().map(SysAppResult::getAppName).collect(Collectors.toList());
// 将菜单按应用编码分类,激活的应用放在最前边