|
|
@@ -40,6 +40,7 @@ public class IdentityAuthService {
|
|
|
private RedisTemplate<String, Object> redisTemplate;
|
|
|
private Environment env;
|
|
|
private SysConfigService sysConfigService;
|
|
|
+ private CacheService cacheService;
|
|
|
|
|
|
public Page<IdentityAuth> all(PageQuery pageQuery) {
|
|
|
return identityAuthRepo.findAll(JpaUtils.toSpecification(pageQuery, IdentityAuth.class), JpaUtils.toPageRequest(pageQuery));
|
|
|
@@ -61,6 +62,7 @@ public class IdentityAuthService {
|
|
|
identityAuthRepo.save(identityAuth);
|
|
|
user.setAuthStatus(AuthStatus.PENDING);
|
|
|
userRepo.save(user);
|
|
|
+ cacheService.clearUserMy(user.getId());
|
|
|
|
|
|
identityAuthRepo.deleteDuplicated(identityAuth.getUserId(), identityAuth.getId());
|
|
|
}
|