|
@@ -39,10 +39,9 @@ public class DictUtils
|
|
*/
|
|
*/
|
|
public static List<SysDictData> getDictCache(String key)
|
|
public static List<SysDictData> getDictCache(String key)
|
|
{
|
|
{
|
|
- JSONArray arrayCache = JSONArray.of(SpringUtils.getBean(CaffeineCache.class).getCache(getCacheKey(key)));
|
|
|
|
- if (StringUtils.isNotNull(arrayCache))
|
|
|
|
- {
|
|
|
|
- return arrayCache.toList(SysDictData.class);
|
|
|
|
|
|
+ Object cache = SpringUtils.getBean(CaffeineCache.class).getCache(getCacheKey(key));
|
|
|
|
+ if(cache instanceof List){
|
|
|
|
+ return (List<SysDictData>) cache;
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|