mirror of https://gitee.com/stylefeng/roses
【8.0.5】【system】更新获取菜单信息加上业务id的获取
parent
6a65ef9f49
commit
e31c0e79e0
|
@ -83,6 +83,12 @@ public class IndexUserMenuInfo implements AbstractTreeNode<IndexUserMenuInfo> {
|
|||
@ChineseDescription("路由元信息")
|
||||
private String meta;
|
||||
|
||||
/**
|
||||
* 应用设计的业务id
|
||||
*/
|
||||
@ChineseDescription("应用设计的业务id")
|
||||
private Long appDesignBusinessId;
|
||||
|
||||
/**
|
||||
* 子级菜单
|
||||
*/
|
||||
|
|
|
@ -358,6 +358,7 @@ public class UserIndexInfoService {
|
|||
indexUserMenuInfo.setPath(userMenuItem.getAntdvRouter());
|
||||
indexUserMenuInfo.setComponent(userMenuItem.getAntdvComponent());
|
||||
indexUserMenuInfo.setSortNumber(userMenuItem.getMenuSort());
|
||||
indexUserMenuInfo.setAppDesignBusinessId(userMenuItem.getAppDesignBusinessId());
|
||||
appMenuList.add(indexUserMenuInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,7 +158,8 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||
@Override
|
||||
public List<SysMenu> getTotalMenus(Set<Long> limitMenuIds) {
|
||||
LambdaQueryWrapper<SysMenu> menuLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
menuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getMenuName, SysMenu::getMenuParentId, SysMenu::getAppId, SysMenu::getMenuSort);
|
||||
menuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getMenuName, SysMenu::getMenuParentId, SysMenu::getAppId,
|
||||
SysMenu::getMenuSort);
|
||||
|
||||
// 如果限制菜单不为空,则根据限制菜单id进行筛选,否则查询所有菜单
|
||||
if (ObjectUtil.isNotEmpty(limitMenuIds)) {
|
||||
|
@ -219,7 +220,8 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
|
|||
// 查询指定的菜单内容
|
||||
sysMenuLambdaQueryWrapper.select(SysMenu::getMenuId, SysMenu::getMenuParentId, SysMenu::getMenuPids, SysMenu::getAppId,
|
||||
SysMenu::getMenuCode, SysMenu::getMenuName, SysMenu::getMenuType, SysMenu::getAntdvIcon, SysMenu::getAntdvVisible,
|
||||
SysMenu::getAntdvActiveUrl, SysMenu::getAntdvRouter, SysMenu::getAntdvComponent, SysMenu::getMenuSort);
|
||||
SysMenu::getAntdvActiveUrl, SysMenu::getAntdvRouter, SysMenu::getAntdvComponent, SysMenu::getMenuSort,
|
||||
SysMenu::getAppDesignBusinessId);
|
||||
|
||||
sysMenuLambdaQueryWrapper.orderByAsc(SysMenu::getMenuSort);
|
||||
|
||||
|
|
Loading…
Reference in New Issue