Commit 916488bc by zhiwj

添加评价人数

parent 595e714e
......@@ -33,6 +33,7 @@ public class StoreEsDTO implements Serializable {
private String location;
private String address;
private Double score;
private Integer evaluateCount;
public Integer getStoreId() {
return storeId;
......@@ -265,4 +266,12 @@ public class StoreEsDTO implements Serializable {
public void setScore(Double score) {
this.score = score;
}
public void setEvaluateCount(Integer evaluateCount) {
this.evaluateCount = evaluateCount;
}
public Integer getEvaluateCount() {
return evaluateCount;
}
}
......@@ -1125,6 +1125,7 @@ public class StoreApiServiceImpl implements StoreApiService {
esDTO.setPhotoList(dto.getPhotoList());
esDTO.setAddress(dto.getAddress());
esDTO.setScore(dto.getScore());
esDTO.setEvaluateCount(dto.getEvaluateCount());
Double[] location = {Double.valueOf(StringUtils.isBlank(dto.getLongitude())? "0" : dto.getLongitude()),Double.valueOf(StringUtils.isBlank(dto.getLatitude())? "0":dto.getLatitude())};
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(esDTO));
jsonObject.put("location", location);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment