修改写字楼估值逻辑
This commit is contained in:
@@ -37,6 +37,7 @@ public class SeawaterQuery {
|
||||
private Double lng;
|
||||
|
||||
private Integer radius;
|
||||
private String level;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
@@ -269,4 +270,12 @@ public class SeawaterQuery {
|
||||
public void setRadius(Integer radius) {
|
||||
this.radius = radius;
|
||||
}
|
||||
|
||||
public String getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
public void setLevel(String level) {
|
||||
this.level = level;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,6 +142,10 @@ public class Evaluation implements MongoEntity {
|
||||
* 物业费(元/m?/月)
|
||||
*/
|
||||
private Double propertyManagementFee;
|
||||
/**
|
||||
* 楼层描述
|
||||
*/
|
||||
private String floorDesc;
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
@Column(name = "_id")
|
||||
@@ -1054,4 +1058,12 @@ public class Evaluation implements MongoEntity {
|
||||
public void setPropertyManagementFee(Double propertyManagementFee) {
|
||||
this.propertyManagementFee = propertyManagementFee;
|
||||
}
|
||||
|
||||
public String getFloorDesc() {
|
||||
return floorDesc;
|
||||
}
|
||||
|
||||
public void setFloorDesc(String floorDesc) {
|
||||
this.floorDesc = floorDesc;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.fangjia.dal.mongo.model;
|
||||
import com.fangjia.dal.MongoEntity;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.Date;
|
||||
|
||||
@Entity
|
||||
@Table(name = "fangjia_stat.office_rent_stat")
|
||||
@@ -16,6 +15,7 @@ public class OfficeRentStat implements MongoEntity {
|
||||
private String district;
|
||||
private Integer date;
|
||||
private Double avgPrice;
|
||||
private String name;
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
@@ -72,4 +72,13 @@ public class OfficeRentStat implements MongoEntity {
|
||||
public void setAvgPrice(Double avgPrice) {
|
||||
this.avgPrice = avgPrice;
|
||||
}
|
||||
|
||||
@Column(name = "name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
+19
-7
@@ -1,19 +1,17 @@
|
||||
package com.fangjia.dal.seawater.dao;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.fangjia.dal.SeawaterQuery;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import com.fangjia.core.util.HttpRequest;
|
||||
import com.fangjia.core.util.HttpRequestException;
|
||||
import com.fangjia.dal.SeawaterQuery;
|
||||
import com.fangjia.dal.seawater.model.Seawater;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.sothis.core.util.Pager;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class SeawaterDaoImpl extends com.fangjia.dal.SeawaterDaoImpl<Seawater> implements SeawaterDao {
|
||||
|
||||
|
||||
@@ -618,6 +616,20 @@ public class SeawaterDaoImpl extends com.fangjia.dal.SeawaterDaoImpl<Seawater> i
|
||||
temp.put("term", param);
|
||||
jsonList.add(temp);
|
||||
}
|
||||
if (StringUtils.isNotBlank(query.getFitment())) {
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("fitment", query.getFitment());
|
||||
JSONObject temp = new JSONObject();
|
||||
temp.put("term", param);
|
||||
jsonList.add(temp);
|
||||
}
|
||||
if (StringUtils.isNotBlank(query.getDirection())) {
|
||||
JSONObject param = new JSONObject();
|
||||
param.put("direction", query.getDirection());
|
||||
JSONObject temp = new JSONObject();
|
||||
temp.put("term", param);
|
||||
jsonList.add(temp);
|
||||
}
|
||||
|
||||
Set<String> namesList = new LinkedHashSet<String>();
|
||||
if (StringUtils.isNotBlank(query.getDistrictName())) {
|
||||
|
||||
Reference in New Issue
Block a user