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
1ab56eb3
Commit
1ab56eb3
authored
Aug 14, 2018
by
liuyongshuai
Committed by
liuyongshuai
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化查询权限菜单方法。
parent
b9168a3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
+3
-2
No files found.
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
View file @
1ab56eb3
...
...
@@ -478,7 +478,7 @@
ID, NAME, MENUNAME, PID, PERMISSION, URL, DESCRIPTION, TYPE
FROM
sys_permission_new
where scbz = 0 AND flag=1
/*生成菜单*/
where scbz = 0 AND flag=1
AND id like 'H01%' ORDER BY ID
</select>
<!--根据userid查询菜单-->
<select
id=
"selectMencusByUserId"
resultType=
"com.xzxtshiro.pojo.SysPermissionNew"
>
...
...
@@ -487,8 +487,9 @@
ID, NAME, MENUNAME, PID, PERMISSION, URL, TYPE
FROM
VW_USER_PERMISSION
where flag=1
/*生成菜单*/
where flag=1
<if
test=
"userId!=null"
>
and USERID=#{userId,jdbcType=VARCHAR}
</if>
AND id like 'H01%' ORDER BY ID
</select>
<!--查询用户列表-->
<select
id=
"selectSysUserByCondition"
resultMap=
"BaseResultMap"
>
...
...
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