use of com.ruoyi.common.core.domain.entity.SysDictData in project hocassian-media-matrix by hokaso.
the class SysDictTypeServiceImpl method init.
/**
* 项目启动时,初始化字典到缓存
*/
@PostConstruct
public void init() {
List<SysDictType> dictTypeList = dictTypeMapper.selectDictTypeAll();
for (SysDictType dictType : dictTypeList) {
List<SysDictData> dictDatas = dictDataMapper.selectDictDataByType(dictType.getDictType());
DictUtils.setDictCache(dictType.getDictType(), dictDatas);
}
}
Aggregations