Commit 380eb5fe by xing_wang

除admin外,用户角色目录排列问题

parent 8a9706e2
......@@ -448,7 +448,12 @@
</select>
<!--根据userid查询角色名-->
<select id="selectSysRolesByUserId" parameterType="string" resultType="com.xzxtshiro.pojo.SysRole">
select ROLENAME,a.ROLE_ID as id from
select
ROLENAME,
a.ROLE_ID as id ,
b.ISPARENT as isparent,
b.PID as pid
from
sys_user_role a,sys_role b
where A.USER_ID=#{userId,jdbcType=VARCHAR} and A.ROLE_ID=b.id
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment