|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | SysFunctionService sysFunctionService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static final String USER_POWER_REDISKEY = "USER_POWER_"; | 
|---|
|  |  |  | public static final String USER_POWER_REDISKEY_APP = "USER_POWER_APP"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static final String USERFUNCTION = "userFunction"; | 
|---|
|  |  |  | /** 用户所有路径权限的记录 **/ | 
|---|
|  |  |  | 
|---|
|  |  |  | List<String> userUrlMapping = new ArrayList<>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String redisKey = USER_POWER_REDISKEY + SecureUtil.md5(user.getSuId()+""); | 
|---|
|  |  |  | String redisKey = USER_POWER_REDISKEY_APP + SecureUtil.md5(user.getSuId()+""); | 
|---|
|  |  |  | String cachedValue = redisClient.getCachedValue(redisKey); | 
|---|
|  |  |  | if (StringUtils.isNotBlank(cachedValue)) { | 
|---|
|  |  |  | //从缓存中获取用户权限 | 
|---|