|
@@ -204,6 +204,38 @@
|
|
|
order by m.parent_id, m.order_num
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectMenuTreeByUserId1" parameterType="Long" resultMap="SysMenuResult">
|
|
|
+ select distinct m.menu_id,
|
|
|
+ m.parent_id,
|
|
|
+ m.menu_name,
|
|
|
+ rm.menu_alias_name,
|
|
|
+ m.path,
|
|
|
+ m.component,
|
|
|
+ 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,
|
|
|
+ m.remark,
|
|
|
+ m.isNew
|
|
|
+ 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
|
|
|
+ left join sys_role ro on ur.role_id = ro.role_id
|
|
|
+ left join sys_user u on ur.user_id = u.user_id
|
|
|
+ left join sys_tenant_menu t on u.tenant_id = t.tenant_id
|
|
|
+ where u.user_id = #{userId}
|
|
|
+ and m.menu_type in ('M', 'C')
|
|
|
+ and m.status = 0
|
|
|
+ AND ro.status = 0
|
|
|
+ AND t.platform_id=#{platformId}
|
|
|
+ order by m.parent_id, m.order_num
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectMenuTreeByUserIdOne" resultMap="SysMenuResult">
|
|
|
SELECT
|
|
|
m.menu_id,
|
|
@@ -236,6 +268,39 @@
|
|
|
m.order_num
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectMenuTreeByUserIdOne1" resultMap="SysMenuResult">
|
|
|
+ SELECT
|
|
|
+ m.menu_id,
|
|
|
+ m.parent_id,
|
|
|
+ m.menu_name,
|
|
|
+ t.menu_alias_name,
|
|
|
+ m.path,
|
|
|
+ m.component,
|
|
|
+ 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,
|
|
|
+ m.remark,
|
|
|
+ m.isNew
|
|
|
+ FROM
|
|
|
+ sys_menu m
|
|
|
+ JOIN sys_tenant_menu t
|
|
|
+ WHERE
|
|
|
+ m.menu_id = t.menu_id
|
|
|
+ AND m.menu_type IN ('M', 'C')
|
|
|
+ AND m. STATUS = 0
|
|
|
+ AND t.tenant_id=#{tenantId}
|
|
|
+ AND t.platform_id=#{platformId}
|
|
|
+ ORDER BY
|
|
|
+ m.parent_id,
|
|
|
+ m.order_num
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectMenuListByRoleId" resultType="Integer">
|
|
|
select m.menu_id
|
|
|
from sys_menu m
|