【7.6.0】【sys】【首页用户详情接口】菜单详情返回应用id

pull/57/head
fengshuonan 2023-06-19 22:17:50 +08:00
parent 213e0b4e53
commit 976b7f2e17
3 changed files with 7 additions and 7 deletions

View File

@ -192,7 +192,7 @@ public class UserIndexInfoService {
HashSet<String> permissionCodeList = new HashSet<>(); HashSet<String> permissionCodeList = new HashSet<>();
// 获取菜单对应的菜单编码集合 // 获取菜单对应的菜单编码集合
List<SysMenu> menuInfoList = sysMenuService.getMenuCodeList(menuIdList); List<SysMenu> menuInfoList = sysMenuService.getIndexMenuInfoList(menuIdList);
Set<String> menuCodeList = menuInfoList.stream().map(SysMenu::getMenuCode).collect(Collectors.toSet()); Set<String> menuCodeList = menuInfoList.stream().map(SysMenu::getMenuCode).collect(Collectors.toSet());
permissionCodeList.addAll(menuCodeList); permissionCodeList.addAll(menuCodeList);

View File

@ -105,13 +105,13 @@ public interface SysMenuService extends IService<SysMenu> {
List<SysMenu> getTotalMenuList(); List<SysMenu> getTotalMenuList();
/** /**
* id * idid
* <p> * <p>
* *
* *
* @author fengshuonan * @author fengshuonan
* @since 2023/6/19 12:53 * @since 2023/6/19 12:53
*/ */
List<SysMenu> getMenuCodeList(List<Long> menuIdList); List<SysMenu> getIndexMenuInfoList(List<Long> menuIdList);
} }

View File

@ -178,7 +178,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
} }
@Override @Override
public List<SysMenu> getMenuCodeList(List<Long> menuIdList) { public List<SysMenu> getIndexMenuInfoList(List<Long> menuIdList) {
if (ObjectUtil.isEmpty(menuIdList)) { if (ObjectUtil.isEmpty(menuIdList)) {
return new ArrayList<>(); return new ArrayList<>();
@ -189,9 +189,9 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
sysMenuLambdaQueryWrapper.in(SysMenu::getMenuId, menuIdList); sysMenuLambdaQueryWrapper.in(SysMenu::getMenuId, menuIdList);
// 查询指定的菜单内容 // 查询指定的菜单内容
sysMenuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getMenuCode, SysMenu::getMenuName, SysMenu::getAntdvIcon, sysMenuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getAppId, SysMenu::getMenuCode, SysMenu::getMenuName,
SysMenu::getAntdvVisible, SysMenu::getAntdvActiveUrl, SysMenu::getAntdvRouter, SysMenu::getAntdvComponent, SysMenu::getAntdvIcon, SysMenu::getAntdvVisible, SysMenu::getAntdvActiveUrl, SysMenu::getAntdvRouter,
SysMenu::getMenuSort); SysMenu::getAntdvComponent, SysMenu::getMenuSort);
return this.list(sysMenuLambdaQueryWrapper); return this.list(sysMenuLambdaQueryWrapper);
} }