|
|
|
@ -24,6 +24,7 @@ import cn.hutool.core.text.StrPool;
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import cn.hutool.core.util.NumberUtil;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.baiye.component.LoginUser;
|
|
|
|
|
import com.baiye.config.BusinessConfig;
|
|
|
|
|
import com.baiye.config.properties.FileProperties;
|
|
|
|
|
import com.baiye.constant.DefaultNumberConstants;
|
|
|
|
@ -57,6 +58,8 @@ import com.google.common.collect.Sets;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.springframework.cache.Cache;
|
|
|
|
|
import org.springframework.cache.CacheManager;
|
|
|
|
|
import org.springframework.cache.annotation.CacheConfig;
|
|
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
|
@ -87,6 +90,8 @@ public class UserServiceImpl implements UserService {
|
|
|
|
|
|
|
|
|
|
private final UserMapper userMapper;
|
|
|
|
|
private final RedisUtils redisUtils;
|
|
|
|
|
|
|
|
|
|
private final CacheManager cacheManager;
|
|
|
|
|
private final RoleRepository repository;
|
|
|
|
|
private final FileProperties properties;
|
|
|
|
|
private final BusinessConfig businessConfig;
|
|
|
|
@ -518,6 +523,7 @@ public class UserServiceImpl implements UserService {
|
|
|
|
|
user.setGender(resources.getGender());
|
|
|
|
|
user.setTurnCrmNum(resources.getTurnCrmNum());
|
|
|
|
|
userRepository.save(user);
|
|
|
|
|
this.redisUtils.del(CacheKey.USER_DETAILS + "::" + resources.getUsername());
|
|
|
|
|
// 清除缓存
|
|
|
|
|
delCaches(user.getId(), user.getUsername());
|
|
|
|
|
}
|
|
|
|
|