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

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

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