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
3c452480
Commit
3c452480
authored
Sep 03, 2018
by
liuyongshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加修改用户状态时加载条;修改用户查询的一个bug
parent
e2209f40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
+2
-2
src/main/webapp/WEB-INF/jsp/admin/user/list.jsp
+3
-0
No files found.
src/main/java/com/xzxtshiro/mapper/SysUserMapper.xml
View file @
3c452480
...
...
@@ -557,10 +557,10 @@
<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>
<if
test=
"openFlag !=null"
>
and OPEN_FLAG =
#{openFlag,jdbcType=VARCHAR}
</if>
</select>
<!--批量添加用户角色信息-->
...
...
src/main/webapp/WEB-INF/jsp/admin/user/list.jsp
View file @
3c452480
...
...
@@ -301,6 +301,9 @@
var
form
=
layui
.
form
,
layer
=
layui
.
layer
;
form
.
render
(
'select'
);
form
.
on
(
'switch'
,
function
(
data
){
var
index
=
layer
.
load
(
3
,
{
shade
:[
0.8
,
'#fff'
],
content
:
'正在更新用户状态,请稍等!'
,
time
:
30
*
1000
,
success
:
function
(
layero
){
layero
.
find
(
'.layui-layer-content'
).
css
({
'padding'
:
'3px 0 0 60px'
,
'width'
:
'300px'
,
'marger-left'
:
'-200px'
});
}});
var
elem
=
$
(
data
.
elem
);
var
trelem
=
elem
.
parents
(
"tr"
);
var
id
=
trelem
.
find
(
".laytable-cell-1-id"
).
html
();
...
...
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