优化写字楼和商铺估值接口
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
public class SeawaterQuery {
|
||||
|
||||
private String id;
|
||||
private List<String> ids;
|
||||
private String cat;
|
||||
private String region;
|
||||
private String districtName;
|
||||
@@ -287,4 +288,12 @@ public class SeawaterQuery {
|
||||
public void setTags(List<String> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,6 +150,10 @@ public class Evaluation implements MongoEntity {
|
||||
* 查询范围
|
||||
*/
|
||||
private Integer radius;
|
||||
/**
|
||||
* 样本IDS
|
||||
*/
|
||||
private String sampleIds;
|
||||
/**
|
||||
* 商铺标签
|
||||
*/
|
||||
@@ -1092,4 +1096,13 @@ public class Evaluation implements MongoEntity {
|
||||
public void setTags(String tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
@Column(name = "sample_ids")
|
||||
public String getSampleIds() {
|
||||
return sampleIds;
|
||||
}
|
||||
|
||||
public void setSampleIds(String sampleIds) {
|
||||
this.sampleIds = sampleIds;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -642,6 +642,13 @@ public class SeawaterDaoImpl extends com.fangjia.dal.SeawaterDaoImpl<Seawater> i
|
||||
temp.put("term", param);
|
||||
jsonList.add(temp);
|
||||
}
|
||||
if(query.getIds() != null){
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("_id", query.getIds());
|
||||
JSONObject temp = new JSONObject();
|
||||
temp.put("terms", param);
|
||||
jsonList.add(temp);
|
||||
}
|
||||
if (StringUtils.isNotBlank(query.getCat())) {
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("cat", query.getCat());
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.fangjia.dal.seawater.model;
|
||||
|
||||
public class SeawaterDto {
|
||||
|
||||
private String id;
|
||||
private String city;
|
||||
private String district;
|
||||
private String name;
|
||||
@@ -143,4 +144,12 @@ public class SeawaterDto {
|
||||
public void setLocation(String location) {
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user