|
|
@ -27,30 +27,9 @@
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
|
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 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,
|
|
|
|
|
|
|
|
m.perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
|
|
|
from sys_menu m
|
|
|
|
from sys_menu m
|
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id
|
|
|
|
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
|
|
|
|
left join sys_user_role ur on rm.role_id = ur.role_id
|
|
|
@ -77,7 +56,7 @@
|
|
|
|
m.`query`,
|
|
|
|
m.`query`,
|
|
|
|
m.visible,
|
|
|
|
m.visible,
|
|
|
|
m.status,
|
|
|
|
m.status,
|
|
|
|
ifnull(m.perms, '') as perms,
|
|
|
|
m.perms,
|
|
|
|
m.is_frame,
|
|
|
|
m.is_frame,
|
|
|
|
m.is_cache,
|
|
|
|
m.is_cache,
|
|
|
|
m.menu_type,
|
|
|
|
m.menu_type,
|
|
|
|