|
|
@ -9,7 +9,7 @@ |
|
|
|
|
|
|
|
<select id="selectMenuListByUserId" resultMap="SysMenuResult"> |
|
|
|
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query_param, m.visible, m.status, |
|
|
|
m.perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time |
|
|
|
m.perms, m.is_frame, m.is_cache, m.platform_type,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_role r on rm.role_id = r.role_id |
|
|
@ -23,6 +23,7 @@ |
|
|
|
m.path, |
|
|
|
m.component, |
|
|
|
m.query_param, |
|
|
|
m.platform_type, |
|
|
|
m.visible, |
|
|
|
m.status, |
|
|
|
m.perms, |
|
|
@ -36,6 +37,9 @@ |
|
|
|
left join sys_role_menu rm on m.menu_id = rm.menu_id and m.status = '0' |
|
|
|
left join sys_role r on rm.role_id = r.role_id and r.status = '0' |
|
|
|
where m.menu_type in ('M', 'C') |
|
|
|
<if test="platformType != null and platformType != ''"> |
|
|
|
and m.platform_type = #{platformType} |
|
|
|
</if> |
|
|
|
and r.role_id in (select role_id from sys_user_role where user_id = #{userId}) |
|
|
|
order by m.parent_id, m.order_num |
|
|
|
</select> |
|
|
|