Bug 修复

yun-zuoyi
wei.peng 5 years ago
commit 9e83ffa513

@ -46,8 +46,7 @@ public class AppStartSystemInit implements CommandLineRunner {
// 限制账号数量
public static int userInfoCount = 100;
// @Value("${" + CommonConstWords.PROP_IMPP_ELASTICSEARCH_URL + "}")
// public String PROP_IMPP_ELASTICSEARCH_URL;
public String PROP_IMPP_ELASTICSEARCH_URL;
@Resource(name = CommonConstWords.IMPP_REDIS_RES)
private ImppRedis redisRes;

@ -232,12 +232,11 @@ public class SystemInitService implements ISystemInitService {
resListPage = systemResourceService.listSysLocaleResourceByPager(null, pager);
for (SysLocaleResource res : resListPage.getObjectList()) {
resKey = CommonConstWords.REDIS_PREFIX_CACHE_LANGUAGE + ":" + res.getLanguageCode() + ":" + res.getSoftType();
resKey = CommonConstWords.REDIS_PREFIX_CACHE_LANGUAGE + ":" + res.getSoftType() + ":" + res.getResourceKey();
resMap = langSoftMap.computeIfAbsent(resKey, k -> new HashMap<>());
resMap.put(res.getResourceKey(), res.getResourceValue());
resMap.put(res.getLanguageCode(), res.getResourceValue());
}
LOGGER.info("【加载资源】数据分类中 {} / {} ", pager.getEndRow(), pager.getTotalRows());
} while (pager.hasNext());

Loading…
Cancel
Save