mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-08-29 09:30:20 +00:00
多租户模式下系统系统会给租户默认增加上测试的角色菜单,但是后台获取菜单时异常,无法打开相关页面 #8667
This commit is contained in:
@@ -28,15 +28,16 @@
|
||||
,icon
|
||||
,is_leaf
|
||||
FROM sys_permission
|
||||
WHERE 1=1
|
||||
<choose>
|
||||
<when test="parentId != null and parentId != ''">
|
||||
AND parent_id = #{parentId,jdbcType=VARCHAR}
|
||||
</when>
|
||||
<otherwise>
|
||||
AND parent_id is null
|
||||
</otherwise>
|
||||
</choose>
|
||||
<where>
|
||||
<choose>
|
||||
<when test="parentId != null and parentId != ''">
|
||||
parent_id = #{parentId,jdbcType=VARCHAR}
|
||||
</when>
|
||||
<otherwise>
|
||||
parent_id is null
|
||||
</otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<!-- 获取登录用户拥有的权限 -->
|
||||
@@ -212,7 +213,7 @@
|
||||
</select>
|
||||
|
||||
<!--根据用户名称和test角色id查询权限-->
|
||||
<select id="queryPermissionByTestRoleId" resultType="org.jeecg.modules.system.entity.SysPermission">
|
||||
<select id="queryPermissionByTestRoleId" resultMap="SysPermission">
|
||||
SELECT p.*
|
||||
FROM sys_permission p
|
||||
WHERE exists(
|
||||
|
Reference in New Issue
Block a user