update 优化字典工具写法
This commit is contained in:
parent
149b136e0b
commit
b374ff4d6d
@ -36,9 +36,8 @@ public class DictUtils {
|
|||||||
* @return dictDatas 字典数据列表
|
* @return dictDatas 字典数据列表
|
||||||
*/
|
*/
|
||||||
public static List<SysDictData> getDictCache(String key) {
|
public static List<SysDictData> getDictCache(String key) {
|
||||||
Object cacheObj = RedisUtils.getCacheObject(getCacheKey(key));
|
List<SysDictData> dictDatas = RedisUtils.getCacheObject(getCacheKey(key));
|
||||||
if (StringUtils.isNotNull(cacheObj)) {
|
if (StringUtils.isNotNull(dictDatas)) {
|
||||||
List<SysDictData> dictDatas = (List<SysDictData>) cacheObj;
|
|
||||||
return dictDatas;
|
return dictDatas;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user