|
|
@ -445,6 +445,11 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void cleanOnlineUserByRole(Long roleId) {
|
|
|
|
public void cleanOnlineUserByRole(Long roleId) {
|
|
|
|
|
|
|
|
// 如果角色未绑定用户 直接返回
|
|
|
|
|
|
|
|
Long num = userRoleMapper.selectCount(new LambdaQueryWrapper<SysUserRole>().eq(SysUserRole::getRoleId, roleId));
|
|
|
|
|
|
|
|
if (num == 0) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
List<String> keys = StpUtil.searchTokenValue("", 0, -1, false);
|
|
|
|
List<String> keys = StpUtil.searchTokenValue("", 0, -1, false);
|
|
|
|
if (CollUtil.isEmpty(keys)) {
|
|
|
|
if (CollUtil.isEmpty(keys)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|