Commit 8c8af47c authored by 施翔轲's avatar 施翔轲

角色管理-分配用户:取消授权、添加用户操作(含批量)不会退出登录

parent f8f0b5ad
...@@ -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