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
220890fc
Commit
220890fc
authored
Aug 27, 2018
by
liuyongshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户查询问题;去掉身份证号
parent
1e036d6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
+1
-1
src/main/webapp/WEB-INF/jsp/admin/user/list.jsp
+7
-2
No files found.
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
View file @
220890fc
...
...
@@ -511,7 +511,7 @@
<if
test=
"username !=null"
>
and USERNAME like '%'||#{username}||'%'
</if>
<if
test=
"trueName !=null"
>
and true_name like '%'||#{trueName}||'%'
</if>
<if
test=
"identitycard !=null"
>
and IDENTITYCARD like '%'||#{identitycard}||'%'
</if>
<if
test=
"policemanid !=null"
>
and policemanid
= #{policemanid}
</if>
<if
test=
"policemanid !=null"
>
and policemanid
like '%'||#{policemanid}||'%'
</if>
<if
test=
"unitcode !=null"
>
and unitcode like '%'||#{unitcode}||'%'
</if>
<if
test=
"sex !=null"
>
and sex = #sex#
</if>
<if
test=
"openFlag !=null"
>
and OPEN_FLAG = #openFlag#
</if>
...
...
src/main/webapp/WEB-INF/jsp/admin/user/list.jsp
View file @
220890fc
...
...
@@ -253,12 +253,11 @@
table
.
render
({
id
:
"id"
,
elem
:
'#userTable'
,
limit
:
1
0
,
//默认采用10
limit
:
5
0
,
//默认采用10
url
:
'${pageContext.request.contextPath}/admin/user/list'
,
cols
:
[[
{
checkbox
:
true
},
{
field
:
'rn'
,
title
:
'序号'
,
align
:
'center'
,
width
:
50
,
sort
:
true
},
{
field
:
'identitycard'
,
title
:
'身份证号'
,
align
:
'center'
,
width
:
200
,
sort
:
true
},
{
field
:
'username'
,
title
:
'登录名'
,
align
:
'center'
,
width
:
90
,
sort
:
true
},
{
field
:
'trueName'
,
title
:
'用户姓名'
,
align
:
'center'
,
width
:
100
,
sort
:
true
},
{
field
:
'unitname'
,
title
:
'所属部门'
,
align
:
'center'
,
width
:
260
,
sort
:
true
},
...
...
@@ -292,6 +291,12 @@
policemanid
:
policemanid
,
unitcode
:
unitcode
,
roleName
:
roleName
},
page
:
{
curr
:
1
//重新从第 1 页开始
},
done
:
function
(
res
,
curr
,
count
){
this
.
where
=
{};
}
});
}
...
...
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