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
7fb3907f
Commit
7fb3907f
authored
Nov 27, 2018
by
wushanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统管理权限查询页面,陕西省地市管理员角色名称跟其他省份不同,调整了相应的查询sql(SearchUserMapper.xml)
parent
9ef52b7b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/main/java/com/xzxtshiro/mapper/SearchUserMapper.xml
+10
-4
No files found.
src/main/java/com/xzxtshiro/mapper/SearchUserMapper.xml
View file @
7fb3907f
...
...
@@ -59,10 +59,13 @@
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
from sys_role r join sys_user_role u on r.id=u.role_id where u.scbz='0' and r.scbz='0' GROUP BY u.user_id) tt
on t.id=tt.user_id
where scbz='0' and t.username != 'admin'
and rolename like '%地市管理员%'
where scbz='0' and t.username != 'admin'
<if
test=
"trueName !=null"
>
and true_name like '%'||#{trueName}||'%'
</if>
<if
test=
"policemanid !=null"
>
and policemanid like '%'||#{policemanid}||'%'
</if>
<if
test=
"unitcode !=null"
>
and UNITCODE like '%'||#{unitcode}||'%'
</if>
<if
test=
"unitcode !=null"
>
and UNITCODE like '%'||#{unitcode}||'%'
<if
test=
"unitcode == '61'"
>
and rolename like '%省市县管理员%'
</if>
<if
test=
"unitcode != '61'"
>
and rolename like '%地市管理员%'
</if>
</if>
<if
test=
"telephone !=null"
>
and telephone like '%'||#{telephone}||'%'
</if>
<if
test=
"grade !=null"
>
and grade = #{grade}
</if>
<if
test=
"grade ==null"
>
and grade = 'D'
</if>
...
...
@@ -79,10 +82,13 @@
listagg( roleName, ',' ) within group ( order by u.user_id ) as roleName
from sys_role r join sys_user_role u on r.id=u.role_id where u.scbz='0' and r.scbz='0' GROUP BY u.user_id) tt
on t.id=tt.user_id
where scbz='0' and t.username != 'admin'
and rolename like '%地市管理员%'
where scbz='0' and t.username != 'admin'
<if
test=
"trueName !=null"
>
and true_name like '%'||#{trueName}||'%'
</if>
<if
test=
"policemanid !=null"
>
and policemanid like '%'||#{policemanid}||'%'
</if>
<if
test=
"unitcode !=null"
>
and UNITCODE like '%'||#{unitcode}||'%'
</if>
<if
test=
"unitcode !=null"
>
and UNITCODE like '%'||#{unitcode}||'%'
<if
test=
"unitcode == '61'"
>
and rolename like '%省市县管理员%'
</if>
<if
test=
"unitcode != '61'"
>
and rolename like '%地市管理员%'
</if>
</if>
<if
test=
"telephone !=null"
>
and telephone like '%'||#{telephone}||'%'
</if>
<if
test=
"grade !=null"
>
and grade = #{grade}
</if>
<if
test=
"grade ==null"
>
and grade = 'D'
</if>
...
...
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