|
|
@@ -278,6 +278,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
if(user == null){
|
|
|
throw new BusinessException(ResultCode.USER_NOT_EXIST);
|
|
|
}
|
|
|
+ this.removeById(id);
|
|
|
String redisKey = String.format(RedisKeyUtil.LOGIN_USER,user.getUserName(),"*");
|
|
|
Set<String> keys = redisUtil.keys(redisKey);
|
|
|
keys.forEach(e -> redisUtil.del(e));
|