/house/around接口
This commit is contained in:
@@ -6,6 +6,7 @@ import javax.persistence.*;
|
||||
|
||||
import com.fangjia.dal.DatastoreCategory;
|
||||
import com.fangjia.dal.SeawaterEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
|
||||
@Entity
|
||||
@Table(name = "fangjia.seawater")
|
||||
@@ -35,9 +36,11 @@ public class Seawater implements SeawaterEntity {
|
||||
|
||||
private String id;
|
||||
private String category;
|
||||
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
|
||||
private int status;
|
||||
private String city;
|
||||
private String region;
|
||||
private String district;
|
||||
private String districtName;
|
||||
private String address;
|
||||
private Date modificationDate;
|
||||
@@ -46,8 +49,10 @@ public class Seawater implements SeawaterEntity {
|
||||
private String block;
|
||||
private Integer totalPrice;
|
||||
private Double area;
|
||||
private Double size;
|
||||
private Integer height;
|
||||
private Integer floor;
|
||||
private Integer maxFloor;
|
||||
private String floorInfo;
|
||||
private String fitment;
|
||||
private Integer room;
|
||||
@@ -55,10 +60,13 @@ public class Seawater implements SeawaterEntity {
|
||||
private Integer toilet;
|
||||
private String mobile;
|
||||
private Integer pDate;
|
||||
|
||||
private String publishDate;
|
||||
private Integer userId;
|
||||
private String url;
|
||||
private String root;
|
||||
private Integer avgPrice;
|
||||
private Integer unitPrice;
|
||||
private String purpose;
|
||||
private String estateType;
|
||||
private String buildType;
|
||||
@@ -70,6 +78,8 @@ public class Seawater implements SeawaterEntity {
|
||||
private String housingAge; //房屋年限 满二年
|
||||
private String elevator; //配备电梯 有/无
|
||||
|
||||
private String decoration;
|
||||
|
||||
@Id
|
||||
@Column(name = "_id")
|
||||
public String getId() {
|
||||
@@ -395,4 +405,52 @@ public class Seawater implements SeawaterEntity {
|
||||
public void setElevator(String elevator) {
|
||||
this.elevator = elevator;
|
||||
}
|
||||
|
||||
public String getDistrict() {
|
||||
return district;
|
||||
}
|
||||
|
||||
public void setDistrict(String district) {
|
||||
this.district = district;
|
||||
}
|
||||
|
||||
public Double getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(Double size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public Integer getMaxFloor() {
|
||||
return maxFloor;
|
||||
}
|
||||
|
||||
public void setMaxFloor(Integer maxFloor) {
|
||||
this.maxFloor = maxFloor;
|
||||
}
|
||||
|
||||
public Integer getUnitPrice() {
|
||||
return unitPrice;
|
||||
}
|
||||
|
||||
public void setUnitPrice(Integer unitPrice) {
|
||||
this.unitPrice = unitPrice;
|
||||
}
|
||||
|
||||
public String getPublishDate() {
|
||||
return publishDate;
|
||||
}
|
||||
|
||||
public void setPublishDate(String publishDate) {
|
||||
this.publishDate = publishDate;
|
||||
}
|
||||
|
||||
public String getDecoration() {
|
||||
return decoration;
|
||||
}
|
||||
|
||||
public void setDecoration(String decoration) {
|
||||
this.decoration = decoration;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@ public class Seaweed implements SeaweedEntity {
|
||||
private List<String> alias;
|
||||
private List<String> addrAlias;
|
||||
|
||||
private double score;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
@Column(name = "_id")
|
||||
@@ -134,4 +136,13 @@ public class Seaweed implements SeaweedEntity {
|
||||
public void setEstateType2(String estateType2) {
|
||||
this.estateType2 = estateType2;
|
||||
}
|
||||
|
||||
@Transient
|
||||
public double getScore() {
|
||||
return score;
|
||||
}
|
||||
|
||||
public void setScore(double score) {
|
||||
this.score = score;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user