新增写字楼城市出售查询接口

This commit is contained in:
liuhongyang
2025-03-26 13:54:50 +08:00
parent 0eb6ae17e0
commit e0be7b111c
6 changed files with 298 additions and 1 deletions
@@ -0,0 +1,9 @@
package com.fangjia.dal.mongo.dao.office;
import com.fangjia.dal.MongoDao;
import com.fangjia.dal.mongo.model.OfficeSellStat;
public interface OfficeSellStatDao extends MongoDao<OfficeSellStat> {
}
@@ -0,0 +1,8 @@
package com.fangjia.dal.mongo.dao.office;
import com.fangjia.dal.MongoDaoImpl;
import com.fangjia.dal.mongo.model.OfficeSellStat;
public class OfficeSellStatDaoImpl extends MongoDaoImpl<OfficeSellStat> implements OfficeSellStatDao {
}
@@ -0,0 +1,138 @@
package com.fangjia.dal.mongo.model;
import com.fangjia.dal.MongoEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name = "fangjia_stat.office_sell_stat")
public class OfficeSellStat implements MongoEntity {
private static final long serialVersionUID = 4425229045088250573L;
private String id;
private String cat;
private String city;
private Integer date;
private String district;
private String name;
private Double avgPrice;
private String estateType2;
private String bedKind;
@JsonIgnore
private Object location;
private Integer calcType;
private Date updatedDate;
@Id
@GeneratedValue
@Column(name = "_id", unique = true, nullable = false)
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Column(name = "cat")
public String getCat() {
return cat;
}
public void setCat(String cat) {
this.cat = cat;
}
@Column(name = "city")
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
@Column(name = "date")
public Integer getDate() {
return date;
}
public void setDate(Integer date) {
this.date = date;
}
@Column(name = "district")
public String getDistrict() {
return district;
}
public void setDistrict(String district) {
this.district = district;
}
@Column(name = "name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Column(name = "avg_price")
public Double getAvgPrice() {
return avgPrice;
}
public void setAvgPrice(Double avgPrice) {
this.avgPrice = avgPrice;
}
@Column(name = "estate_type2")
public String getEstateType2() {
return estateType2;
}
public void setEstateType2(String estateType2) {
this.estateType2 = estateType2;
}
@Column(name = "bed_kind")
public String getBedKind() {
return bedKind;
}
public void setBedKind(String bedKind) {
this.bedKind = bedKind;
}
@Column(name = "location")
public Object getLocation() {
return location;
}
public void setLocation(Object location) {
this.location = location;
}
@Column(name = "calc_type")
public Integer getCalcType() {
return calcType;
}
public void setCalcType(Integer calcType) {
this.calcType = calcType;
}
@Column(name = "updated_date")
public Date getUpdatedDate() {
return updatedDate;
}
public void setUpdatedDate(Date updatedDate) {
this.updatedDate = updatedDate;
}
}