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