Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
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
Administrator
dsk-cr20g
Commits
995827b9
Commit
995827b9
authored
Nov 21, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V20230915' of
http://192.168.60.201/root/dsk-operate-sys
into V20230915
parents
a59d087b
8c8af47c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
SysRoleServiceImpl.java
.../java/com/dsk/system/service/impl/SysRoleServiceImpl.java
+9
-9
No files found.
dsk-system/src/main/java/com/dsk/system/service/impl/SysRoleServiceImpl.java
View file @
995827b9
...
...
@@ -418,9 +418,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
int
rows
=
userRoleMapper
.
delete
(
new
LambdaQueryWrapper
<
SysUserRole
>()
.
eq
(
SysUserRole:
:
getRoleId
,
userRole
.
getRoleId
())
.
eq
(
SysUserRole:
:
getUserId
,
userRole
.
getUserId
()));
if
(
rows
>
0
)
{
cleanOnlineUserByRole
(
userRole
.
getRoleId
());
}
//
if (rows > 0) {
//
cleanOnlineUserByRole(userRole.getRoleId());
//
}
return
rows
;
}
...
...
@@ -456,9 +456,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
int
rows
=
userRoleMapper
.
delete
(
new
LambdaQueryWrapper
<
SysUserRole
>()
.
eq
(
SysUserRole:
:
getRoleId
,
roleId
)
.
in
(
SysUserRole:
:
getUserId
,
Arrays
.
asList
(
userIds
)));
if
(
rows
>
0
)
{
cleanOnlineUserByRole
(
roleId
);
}
//
if (rows > 0) {
//
cleanOnlineUserByRole(roleId);
//
}
return
rows
;
}
...
...
@@ -515,9 +515,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
if
(
CollUtil
.
isNotEmpty
(
list
))
{
rows
=
userRoleMapper
.
insertBatch
(
list
)
?
list
.
size
()
:
0
;
}
if
(
rows
>
0
)
{
cleanOnlineUserByRole
(
roleId
);
}
//
if (rows > 0) {
//
cleanOnlineUserByRole(roleId);
//
}
return
rows
;
}
...
...
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