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