This commit is contained in:
沈健
2025-03-31 18:23:26 +08:00
2 changed files with 4 additions and 4 deletions
@@ -17,7 +17,7 @@ public class OfficeSellStat implements MongoEntity {
private Integer date;
private String district;
private String name;
private Double avgPrice;
private Integer avgPrice;
private String estateType2;
private String bedKind;
@JsonIgnore
@@ -82,11 +82,11 @@ public class OfficeSellStat implements MongoEntity {
}
@Column(name = "avg_price")
public Double getAvgPrice() {
public Integer getAvgPrice() {
return avgPrice;
}
public void setAvgPrice(Double avgPrice) {
public void setAvgPrice(Integer avgPrice) {
this.avgPrice = avgPrice;
}
@@ -299,7 +299,7 @@ public class OfficeServiceImpl implements OfficeService {
// 第二步:基准价*楼层系数*装修系数*朝向系数
OfficeSellStat officeSellStat = officeSellStatDao.findFirstByParams(params);
Double avgPrice = officeSellStat.getAvgPrice();
Double avgPrice = Double.valueOf(officeSellStat.getAvgPrice());
if (avgPrice != null) {
Double factor = 1.0;
if (evaluation.getFitment() != null) {