写字楼地址估值结果区域改成简称
This commit is contained in:
+4
-2
@@ -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;
|
||||
@@ -356,10 +357,10 @@ public class OfficeServiceImpl implements OfficeService {
|
||||
GaodeDto gaodeDto = getGaodeGeo(evaluation.getCity(), evaluation.getAddress());
|
||||
if (gaodeDto.getLng() != null && gaodeDto.getLat() != null) {
|
||||
evaluation.setLocation(gaodeDto.getLng() + "," + gaodeDto.getLat());
|
||||
}else {
|
||||
} 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;
|
||||
|
||||
Reference in New Issue
Block a user