楼盘评级接口接口
This commit is contained in:
@@ -21,6 +21,7 @@ public class CommunityRate implements MongoEntity {
|
|||||||
private String block;
|
private String block;
|
||||||
private String blockRating;
|
private String blockRating;
|
||||||
private String address;
|
private String address;
|
||||||
|
private Integer avgPrice;
|
||||||
private Double sqmetreRent;
|
private Double sqmetreRent;
|
||||||
private Double yoy;
|
private Double yoy;
|
||||||
private Double rentRoPriceRatio;
|
private Double rentRoPriceRatio;
|
||||||
@@ -108,7 +109,7 @@ public class CommunityRate implements MongoEntity {
|
|||||||
private Date mDate;
|
private Date mDate;
|
||||||
private Date cDate;
|
private Date cDate;
|
||||||
|
|
||||||
// Getter and Setter ·½·¨
|
// Getter and Setter ����
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue
|
@GeneratedValue
|
||||||
@Column(name = "_id", unique = true, nullable = false)
|
@Column(name = "_id", unique = true, nullable = false)
|
||||||
@@ -183,6 +184,15 @@ public class CommunityRate implements MongoEntity {
|
|||||||
this.address = address;
|
this.address = address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Column(name = "avg_price")
|
||||||
|
public Integer getAvgPrice() {
|
||||||
|
return avgPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAvgPrice(Integer avgPrice) {
|
||||||
|
this.avgPrice = avgPrice;
|
||||||
|
}
|
||||||
|
|
||||||
@Column(name = "sqmetre_rent")
|
@Column(name = "sqmetre_rent")
|
||||||
public Double getSqmetreRent() {
|
public Double getSqmetreRent() {
|
||||||
return sqmetreRent;
|
return sqmetreRent;
|
||||||
|
|||||||
+4
-1
@@ -2167,6 +2167,7 @@ public class AddressController {
|
|||||||
CommunityRate communityRateResult = new CommunityRate();
|
CommunityRate communityRateResult = new CommunityRate();
|
||||||
communityRateResult.setCity(communityRate.getCity());
|
communityRateResult.setCity(communityRate.getCity());
|
||||||
communityRateResult.setAddress(communityRate.getAddress());
|
communityRateResult.setAddress(communityRate.getAddress());
|
||||||
|
communityRateResult.setAvgPrice(communityRate.getAvgPrice());
|
||||||
communityRateResult.setName(communityRate.getName());
|
communityRateResult.setName(communityRate.getName());
|
||||||
communityRateResult.setRating(communityRate.getRating());
|
communityRateResult.setRating(communityRate.getRating());
|
||||||
communityRateResult.setTotalScore(communityRate.getTotalScore());
|
communityRateResult.setTotalScore(communityRate.getTotalScore());
|
||||||
@@ -2186,9 +2187,11 @@ public class AddressController {
|
|||||||
communityRateResult.setHospitalScore(communityRate.getHospitalScore());
|
communityRateResult.setHospitalScore(communityRate.getHospitalScore());
|
||||||
resultModel.setResult(communityRateResult);
|
resultModel.setResult(communityRateResult);
|
||||||
}
|
}
|
||||||
|
mav.setModel(resultModel);
|
||||||
|
}else {
|
||||||
|
mav.setModel(BasicModel.buildBadRequestModel("未找到该小区"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mav.setModel(resultModel);
|
|
||||||
return mav;
|
return mav;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user