写字楼出售avg_price类型修改
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user