接口加城市

This commit is contained in:
2023-11-28 14:44:45 +08:00
parent fcb789a255
commit 858d81fdf7
3 changed files with 8 additions and 3 deletions
@@ -1861,6 +1861,12 @@ public class DataUtil {
ret = true;
}
}
}else if(height != null){
if (height <= 3) {
if (area > 200){
ret = true;
}
}
} else if (height == null && room != null) {
if (area > 360 && room >= 6) {
ret = true;
@@ -1169,7 +1169,7 @@ public class DistrictController {
}
public Object addrFacilitysAction(DistrictSearchModel model, @Param(name = "address") String address) throws Exception{
public Object addrFacilitysAction(DistrictSearchModel model, @Param(name = "city") String city, @Param(name = "address") String address) throws Exception{
RestfulModelAndView mav = new RestfulModelAndView();
mav.setViewType("rest");
if (StringUtils.isBlank(address)) {
@@ -1181,6 +1181,7 @@ public class DistrictController {
HttpRequest request = new HttpRequest();
JSONObject json = null;
Map<String, String> params = new HashMap<String, String>();
params.put("city", city);
params.put("address", address);
params.put("category", "property");
//新匹配接口
@@ -376,10 +376,8 @@ public class AddressMatchProxyServiceImpl extends AbstractHttpApiService impleme
if(null != mapResult){
matchResult.addDebugLog("格式化地址调百度结果:" + mapResult.toString());
LOGGER.warn("百度搜索无结果 "+mapResult.toString()+"!");
}else{
matchResult.addDebugLog("格式化地址调百度结果:");
LOGGER.warn("百度搜索无结果");
}
} else {
break;