Commit 2a8c74f2 authored by Administrator's avatar Administrator

-

parent 159bfac4
...@@ -58,10 +58,13 @@ public class EconomicServiceImpl implements EconomicService { ...@@ -58,10 +58,13 @@ public class EconomicServiceImpl implements EconomicService {
public AjaxResult location(OpRegionalLocalDto detailsDto) { public AjaxResult location(OpRegionalLocalDto detailsDto) {
Long userId = SecurityUtils.getLoginUser().getUserId(); Long userId = SecurityUtils.getLoginUser().getUserId();
String redisKey = CacheConstants.PERSONAL_LOCATION + userId; String redisKey = CacheConstants.PERSONAL_LOCATION + userId;
if (ObjectUtil.isEmpty(detailsDto.getProvinceId()) && ObjectUtil.isEmpty(detailsDto.getCityId()) && ObjectUtil.isEmpty(detailsDto.getAreaId())) {
Map<String, Object> cacheMap = redisCache.getCacheMap(redisKey); if (ObjectUtil.isNotEmpty(redisKey)) {
if (MapUtils.isNotEmpty(cacheMap)) { Map<String, Object> cacheMap = redisCache.getCacheMap(redisKey);
return AjaxResult.success(cacheMap); if (MapUtils.isNotEmpty(cacheMap)) {
return AjaxResult.success(cacheMap);
}
}
} }
Map<String, Object> map = dskOpenApiUtil.requestBody("/economic/location", BeanUtil.beanToMap(detailsDto, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/economic/location", BeanUtil.beanToMap(detailsDto, false, false));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment