楼盘评级接口接口

This commit is contained in:
majintao
2025-06-18 14:27:52 +08:00
parent 11a6a41abb
commit 27160eeb5a
2 changed files with 15 additions and 2 deletions
@@ -21,6 +21,7 @@ public class CommunityRate implements MongoEntity {
private String block;
private String blockRating;
private String address;
private Integer avgPrice;
private Double sqmetreRent;
private Double yoy;
private Double rentRoPriceRatio;
@@ -108,7 +109,7 @@ public class CommunityRate implements MongoEntity {
private Date mDate;
private Date cDate;
// Getter and Setter ·½·¨
// Getter and Setter ����
@Id
@GeneratedValue
@Column(name = "_id", unique = true, nullable = false)
@@ -183,6 +184,15 @@ public class CommunityRate implements MongoEntity {
this.address = address;
}
@Column(name = "avg_price")
public Integer getAvgPrice() {
return avgPrice;
}
public void setAvgPrice(Integer avgPrice) {
this.avgPrice = avgPrice;
}
@Column(name = "sqmetre_rent")
public Double getSqmetreRent() {
return sqmetreRent;
@@ -2167,6 +2167,7 @@ public class AddressController {
CommunityRate communityRateResult = new CommunityRate();
communityRateResult.setCity(communityRate.getCity());
communityRateResult.setAddress(communityRate.getAddress());
communityRateResult.setAvgPrice(communityRate.getAvgPrice());
communityRateResult.setName(communityRate.getName());
communityRateResult.setRating(communityRate.getRating());
communityRateResult.setTotalScore(communityRate.getTotalScore());
@@ -2186,9 +2187,11 @@ public class AddressController {
communityRateResult.setHospitalScore(communityRate.getHospitalScore());
resultModel.setResult(communityRateResult);
}
mav.setModel(resultModel);
}else {
mav.setModel(BasicModel.buildBadRequestModel("未找到该小区"));
}
}
mav.setModel(resultModel);
return mav;
}