扩展小区搜索接口

This commit is contained in:
沈健
2025-01-20 15:10:50 +08:00
parent 833429fbc7
commit 81ecc8b9ae
2 changed files with 15 additions and 1 deletions
@@ -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;
}
}