增加国家地区缓存

This commit is contained in:
2025-11-05 16:07:11 +08:00
parent c3c02b7a6a
commit d191bbeaaf

View File

@ -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();
}