Commit cf73ad58 by zhiwj

修改bug

parent ba89e99e
package com.gic.store.dto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class StoreEsDTO implements Serializable {
......@@ -35,6 +36,7 @@ public class StoreEsDTO implements Serializable {
private Double score;
private Integer evaluateCount;
private String conactsPhone;
private Long updateTime;
public Integer getStoreId() {
return storeId;
......@@ -283,4 +285,12 @@ public class StoreEsDTO implements Serializable {
public String getConactsPhone() {
return conactsPhone;
}
public Long getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Long updateTime) {
this.updateTime = updateTime;
}
}
......@@ -1250,6 +1250,7 @@ public class StoreApiServiceImpl implements StoreApiService {
esDTO.setScore(dto.getScore());
esDTO.setEvaluateCount(dto.getEvaluateCount());
esDTO.setConactsPhone(dto.getConactsPhone());
esDTO.setUpdateTime(dto.getUpdateTime().getTime());
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