写字楼地址估值结果区域改成简称

This commit is contained in:
majintao
2025-03-10 18:02:31 +08:00
parent 7a80757dd8
commit 23cc7f2ae0
@@ -1,5 +1,6 @@
package com.fangjia.service.datastore;
import com.fangjia.core.RegionData;
import com.fangjia.core.util.CacheUtils;
import com.fangjia.core.util.DataUtil;
import com.fangjia.core.util.DateUtil;
@@ -359,7 +360,7 @@ public class OfficeServiceImpl implements OfficeService {
} else {
evaluation.setLocation("");
}
evaluation.setRegion(gaodeDto.getDistrict());
evaluation.setRegion(RegionData.formatRegion(evaluation.getCity(), gaodeDto.getDistrict()));
return rentEvaluateByLocation(evaluation);
}
@@ -441,6 +442,7 @@ public class OfficeServiceImpl implements OfficeService {
}
return "";
}
private GaodeDto getGaodeGeo(String city, String address) {
GaodeDto gaodeDto = GeoUtils.geo(city, address);
return gaodeDto;