Commit 995827b9 authored by danfuman's avatar danfuman

Merge branch 'V20230915' of http://192.168.60.201/root/dsk-operate-sys into V20230915

parents a59d087b 8c8af47c
...@@ -418,9 +418,9 @@ public class SysRoleServiceImpl implements ISysRoleService { ...@@ -418,9 +418,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
int rows = userRoleMapper.delete(new LambdaQueryWrapper<SysUserRole>() int rows = userRoleMapper.delete(new LambdaQueryWrapper<SysUserRole>()
.eq(SysUserRole::getRoleId, userRole.getRoleId()) .eq(SysUserRole::getRoleId, userRole.getRoleId())
.eq(SysUserRole::getUserId, userRole.getUserId())); .eq(SysUserRole::getUserId, userRole.getUserId()));
if (rows > 0) { //if (rows > 0) {
cleanOnlineUserByRole(userRole.getRoleId()); // cleanOnlineUserByRole(userRole.getRoleId());
} //}
return rows; return rows;
} }
...@@ -456,9 +456,9 @@ public class SysRoleServiceImpl implements ISysRoleService { ...@@ -456,9 +456,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
int rows = userRoleMapper.delete(new LambdaQueryWrapper<SysUserRole>() int rows = userRoleMapper.delete(new LambdaQueryWrapper<SysUserRole>()
.eq(SysUserRole::getRoleId, roleId) .eq(SysUserRole::getRoleId, roleId)
.in(SysUserRole::getUserId, Arrays.asList(userIds))); .in(SysUserRole::getUserId, Arrays.asList(userIds)));
if (rows > 0) { //if (rows > 0) {
cleanOnlineUserByRole(roleId); // cleanOnlineUserByRole(roleId);
} //}
return rows; return rows;
} }
...@@ -515,9 +515,9 @@ public class SysRoleServiceImpl implements ISysRoleService { ...@@ -515,9 +515,9 @@ public class SysRoleServiceImpl implements ISysRoleService {
if (CollUtil.isNotEmpty(list)) { if (CollUtil.isNotEmpty(list)) {
rows = userRoleMapper.insertBatch(list) ? list.size() : 0; rows = userRoleMapper.insertBatch(list) ? list.size() : 0;
} }
if (rows > 0) { //if (rows > 0) {
cleanOnlineUserByRole(roleId); // cleanOnlineUserByRole(roleId);
} //}
return rows; return rows;
} }
......
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