update 在刷新字典缓存中,增加对动态SQL字典的支持,便于@Trans(type = TransType.DICTIONARY)可以翻译动态SQL字典。
This commit is contained in:
parent
41ab48174d
commit
f4ba60a799
|
|
@ -198,6 +198,13 @@ public class SysDictTypeServiceImpl extends BaseServiceImpl<SysDictTypeDao, SysD
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("刷新字典缓存异常: type=" + dictTypeEntity, e);
|
log.error("刷新字典缓存异常: type=" + dictTypeEntity, e);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
dictionaryTransService.refreshCache(dictTypeEntity.getDictType(), sysDictDataDao.getListForSql(dictTypeEntity.getDictSql())
|
||||||
|
.stream().collect(Collectors.toMap(SysDictVO.DictData::getDictValue, SysDictVO.DictData::getDictLabel)));
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("刷新动态SQL字典缓存异常: type=" + dictTypeEntity, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user