|
|
@@ -20,6 +20,7 @@ import com.uas.sso.util.AccountTypeUtils;
|
|
|
import com.uas.sso.util.ExecuteUtils;
|
|
|
import com.uas.sso.util.PasswordLevelUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
import org.springframework.cache.annotation.CachePut;
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
@@ -460,7 +461,7 @@ public class UserServiceImpl implements UserService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @CachePut(value = "UserCache", key = "'user:' + #userUU")
|
|
|
+ @CacheEvict(value = "UserCache", key = "'user:' + #userUU")
|
|
|
public void setQuestion(Long userUU, List<UserQuestion> questions) {
|
|
|
// 找到用户密保
|
|
|
User user = userDao.findOne(userUU);
|