|
|
|
@ -28,7 +28,7 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectMenuVo">
|
|
|
|
|
select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
|
|
|
|
|
select menu_id, menu_name, parent_id, order_num, path, component, query, is_frame, is_cache, menu_type, visible, status, isnull(perms,'') as perms, icon, create_time
|
|
|
|
|
from sys_menu
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -49,13 +49,13 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectMenuTreeAll" resultMap="SysMenuResult">
|
|
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, isnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
|
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
|
|
|
|
|
order by m.parent_id, m.order_num
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult">
|
|
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, isnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
|
from sys_menu m
|
|
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
|
|
@ -74,7 +74,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
|
|
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, isnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
|
from sys_menu m
|
|
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
|
|
|