Commit 220890fc by liuyongshuai

修改用户查询问题;去掉身份证号

parent 1e036d6c
...@@ -511,7 +511,7 @@ ...@@ -511,7 +511,7 @@
<if test="username !=null"> and USERNAME like '%'||#{username}||'%'</if> <if test="username !=null"> and USERNAME like '%'||#{username}||'%'</if>
<if test="trueName !=null"> and true_name like '%'||#{trueName}||'%'</if> <if test="trueName !=null"> and true_name like '%'||#{trueName}||'%'</if>
<if test="identitycard !=null"> and IDENTITYCARD like '%'||#{identitycard}||'%'</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="unitcode !=null"> and unitcode like '%'||#{unitcode}||'%'</if>
<if test="sex !=null"> and sex = #sex#</if> <if test="sex !=null"> and sex = #sex#</if>
<if test="openFlag !=null"> and OPEN_FLAG = #openFlag#</if> <if test="openFlag !=null"> and OPEN_FLAG = #openFlag#</if>
......
...@@ -253,12 +253,11 @@ ...@@ -253,12 +253,11 @@
table.render({ table.render({
id:"id", id:"id",
elem: '#userTable', elem: '#userTable',
limit: 10 ,//默认采用10 limit: 50 ,//默认采用10
url: '${pageContext.request.contextPath}/admin/user/list', url: '${pageContext.request.contextPath}/admin/user/list',
cols: [[ cols: [[
{ checkbox: true}, { checkbox: true},
{field:'rn',title:'序号',align:'center', width:50, sort: 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:'username',title:'登录名',align:'center', width:90, sort: true},
{field:'trueName',title:'用户姓名', align:'center',width:100, sort: true}, {field:'trueName',title:'用户姓名', align:'center',width:100, sort: true},
{field:'unitname', title:'所属部门',align:'center',width:260, sort: true}, {field:'unitname', title:'所属部门',align:'center',width:260, sort: true},
...@@ -292,6 +291,12 @@ ...@@ -292,6 +291,12 @@
policemanid:policemanid, policemanid:policemanid,
unitcode:unitcode, unitcode:unitcode,
roleName:roleName roleName:roleName
},
page: {
curr: 1 //重新从第 1 页开始
},
done: function(res, curr, count){
this.where={};
} }
}); });
} }
......
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