扩展小区搜索接口
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(),
|
||||
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())) {
|
||||
District matchDistrict = matchDistrict(model.getCity(), model.getKeyword(), model.getDistrict(), null);
|
||||
if (matchDistrict != null) {
|
||||
|
||||
@@ -40,6 +40,9 @@ public class PropertySearchModel {
|
||||
// 室号
|
||||
private String roomNum;
|
||||
|
||||
// 类型
|
||||
private String cat;
|
||||
|
||||
public Boolean getUseOrQuery() {
|
||||
return useOrQuery;
|
||||
}
|
||||
@@ -270,4 +273,11 @@ public class PropertySearchModel {
|
||||
this.roomNum = roomNum;
|
||||
}
|
||||
|
||||
public String getCat() {
|
||||
return cat;
|
||||
}
|
||||
|
||||
public void setCat(String cat) {
|
||||
this.cat = cat;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user