增加国家地区缓存
This commit is contained in:
@ -39,8 +39,8 @@ public class CountryRegionClientImpl implements ICountryRegionClient {
|
||||
log.info("MDM: 加载所有国家地区表缓存开始");
|
||||
List<LngBRegion> list = countryRegionService.list();
|
||||
redisUtil.set(GlobalConstant.REGION_CACHE_KEY, list);
|
||||
redisUtil.set(GlobalConstant.USER_NAME_CACHE_KEY, list.stream().collect(Collectors.toMap(LngBRegion::getCode,LngBRegion::getFullPath)));
|
||||
log.info("ITC-FRAMEWORK: 加载所有国家地区表缓存结束");
|
||||
redisUtil.set(GlobalConstant.REGION_NAME_CACHE_KEY, list.stream().collect(Collectors.toMap(LngBRegion::getCode,LngBRegion::getFullPath)));
|
||||
log.info("MDM: 加载所有国家地区表缓存结束");
|
||||
}finally {
|
||||
TenantUtil.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user