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