!86 数据字典缓存处理的一点小问题

Merge pull request !86 from 说一/master
master
若依 4 years ago committed by Gitee
commit f4536d5d2e
  1. 4
      ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java

@ -76,12 +76,12 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
public List<SysDictData> selectDictDataByType(String dictType)
{
List<SysDictData> dictDatas = DictUtils.getDictCache(dictType);
if (StringUtils.isNotNull(dictDatas))
if (null!=dictDatas&&!dictDatas.isEmpty())
{
return dictDatas;
}
dictDatas = dictDataMapper.selectDictDataByType(dictType);
if (StringUtils.isNotNull(dictDatas))
if (null!=dictDatas&&!dictDatas.isEmpty())
{
DictUtils.setDictCache(dictType, dictDatas);
return dictDatas;

Loading…
Cancel
Save