【7.6.0】【sys】【user】首页用户详情信息,返回用户菜单类型

pull/57/head
fengshuonan 2023-06-25 09:36:31 +08:00
parent f3e595adf5
commit 1b51e659b8
3 changed files with 8 additions and 1 deletions

View File

@ -29,6 +29,12 @@ public class IndexUserMenuInfo implements AbstractTreeNode<IndexUserMenuInfo> {
@ChineseDescription("菜单父级id") @ChineseDescription("菜单父级id")
private Long menuParentId; private Long menuParentId;
/**
* 10-20-30-40-
*/
@ChineseDescription("菜单类型10-后台菜单20-纯前台路由界面30-内部链接40-外部链接")
private Integer menuType;
/** /**
* *
*/ */

View File

@ -309,6 +309,7 @@ public class UserIndexInfoService {
IndexUserMenuInfo indexUserMenuInfo = new IndexUserMenuInfo(); IndexUserMenuInfo indexUserMenuInfo = new IndexUserMenuInfo();
indexUserMenuInfo.setMenuId(userMenuItem.getMenuId()); indexUserMenuInfo.setMenuId(userMenuItem.getMenuId());
indexUserMenuInfo.setMenuParentId(userMenuItem.getMenuParentId()); indexUserMenuInfo.setMenuParentId(userMenuItem.getMenuParentId());
indexUserMenuInfo.setMenuType(userMenuItem.getMenuType());
indexUserMenuInfo.setTitle(userMenuItem.getMenuName()); indexUserMenuInfo.setTitle(userMenuItem.getMenuName());
indexUserMenuInfo.setIcon(userMenuItem.getAntdvIcon()); indexUserMenuInfo.setIcon(userMenuItem.getAntdvIcon());
indexUserMenuInfo.setHide(YesOrNotEnum.N.getCode().equals(userMenuItem.getAntdvVisible())); indexUserMenuInfo.setHide(YesOrNotEnum.N.getCode().equals(userMenuItem.getAntdvVisible()));

View File

@ -190,7 +190,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
// 查询指定的菜单内容 // 查询指定的菜单内容
sysMenuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getMenuParentId, SysMenu::getAppId, SysMenu::getMenuCode, sysMenuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getMenuParentId, SysMenu::getAppId, SysMenu::getMenuCode,
SysMenu::getMenuName, SysMenu::getMenuName, SysMenu::getMenuType,
SysMenu::getAntdvIcon, SysMenu::getAntdvVisible, SysMenu::getAntdvActiveUrl, SysMenu::getAntdvRouter, SysMenu::getAntdvIcon, SysMenu::getAntdvVisible, SysMenu::getAntdvActiveUrl, SysMenu::getAntdvRouter,
SysMenu::getAntdvComponent, SysMenu::getMenuSort); SysMenu::getAntdvComponent, SysMenu::getMenuSort);