Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-shiro
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
xzxt-shiro
Commits
380eb5fe
Commit
380eb5fe
authored
May 15, 2020
by
xing_wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
除admin外,用户角色目录排列问题
parent
8a9706e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
+6
-1
No files found.
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
View file @
380eb5fe
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment