Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zhouhui.jiang
/
test_cursor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jiaxing.zhou
2025-09-26 17:58:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
974758296e286670884af66edeceab96381b40eb
97475829
1 parent
3e53969b
feat(SysMenuMapper): 查询角色菜单树时增加排序字段
在 selectMenuTreeByRoleId 查询中添加了 sort 字段,以支持菜单的排序功能。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
backend/src/main/resources/mapper/SysMenuMapper.xml
backend/src/main/resources/mapper/SysMenuMapper.xml
View file @
9747582
...
...
@@ -51,7 +51,8 @@
</select>
<select
id=
"selectMenuTreeByRoleId"
parameterType=
"Long"
resultMap=
"SysMenuResult"
>
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.menu_type, m.status, m.perms, m.icon, m.create_by, m.create_time, m.update_by, m.update_time, m.del_flag
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.menu_type, m.status, m.perms, m.icon, m.create_by, m.create_time, m.update_by, m.update_time, m.del_flag,
m.sort
from t_sys_menu m
left join t_sys_role_menu rm on m.menu_id = rm.menu_id
where rm.role_id = #{roleId} and m.status = 1 and m.del_flag = '0'
...
...
Please
register
or
login
to post a comment