扩展小区搜索接口
This commit is contained in:
+5
-1
@@ -540,8 +540,12 @@ public class PropertyController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String cat = "district";
|
||||||
|
if (StringUtils.isNotBlank(model.getCat())) {
|
||||||
|
cat = model.getCat();
|
||||||
|
}
|
||||||
List<District> result = districtService.searchByKeyword(model.getCity(), model.getDistrict(),
|
List<District> result = districtService.searchByKeyword(model.getCity(), model.getDistrict(),
|
||||||
model.getKeyword(), "district", sdQuery, PROPERTY_SEARCH_API_FIELDS, model.getMax());
|
model.getKeyword(), cat, sdQuery, PROPERTY_SEARCH_API_FIELDS, model.getMax());
|
||||||
if (result.isEmpty() && StringUtils.isNotBlank(model.getKeyword())) {
|
if (result.isEmpty() && StringUtils.isNotBlank(model.getKeyword())) {
|
||||||
District matchDistrict = matchDistrict(model.getCity(), model.getKeyword(), model.getDistrict(), null);
|
District matchDistrict = matchDistrict(model.getCity(), model.getKeyword(), model.getDistrict(), null);
|
||||||
if (matchDistrict != null) {
|
if (matchDistrict != null) {
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ public class PropertySearchModel {
|
|||||||
// 室号
|
// 室号
|
||||||
private String roomNum;
|
private String roomNum;
|
||||||
|
|
||||||
|
// 类型
|
||||||
|
private String cat;
|
||||||
|
|
||||||
public Boolean getUseOrQuery() {
|
public Boolean getUseOrQuery() {
|
||||||
return useOrQuery;
|
return useOrQuery;
|
||||||
}
|
}
|
||||||
@@ -270,4 +273,11 @@ public class PropertySearchModel {
|
|||||||
this.roomNum = roomNum;
|
this.roomNum = roomNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCat() {
|
||||||
|
return cat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCat(String cat) {
|
||||||
|
this.cat = cat;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user