?
/**
* 初始化配置参数到缓存中
*/
@PostConstruct
private void init() {
Map<Long, Config> configMap = new HashMap<>();
List<Config> list = attributionConfigDao.selectList(new LambdaQueryWrapper<Config>());
if (CheckUtils.isNotEmpty(list)){
for (Config attributionConfig : list) {
configMap.put(attributionConfig.getSysOrgId(),attributionConfig);
}
redisTemplate.opsForHash().putAll("attributionMap", configMap);
}
}