写字楼出售avg_price类型修改
This commit is contained in:
@@ -17,7 +17,7 @@ public class OfficeSellStat implements MongoEntity {
|
|||||||
private Integer date;
|
private Integer date;
|
||||||
private String district;
|
private String district;
|
||||||
private String name;
|
private String name;
|
||||||
private Double avgPrice;
|
private Integer avgPrice;
|
||||||
private String estateType2;
|
private String estateType2;
|
||||||
private String bedKind;
|
private String bedKind;
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@@ -82,11 +82,11 @@ public class OfficeSellStat implements MongoEntity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Column(name = "avg_price")
|
@Column(name = "avg_price")
|
||||||
public Double getAvgPrice() {
|
public Integer getAvgPrice() {
|
||||||
return avgPrice;
|
return avgPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAvgPrice(Double avgPrice) {
|
public void setAvgPrice(Integer avgPrice) {
|
||||||
this.avgPrice = avgPrice;
|
this.avgPrice = avgPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -299,7 +299,7 @@ public class OfficeServiceImpl implements OfficeService {
|
|||||||
|
|
||||||
// 第二步:基准价*楼层系数*装修系数*朝向系数
|
// 第二步:基准价*楼层系数*装修系数*朝向系数
|
||||||
OfficeSellStat officeSellStat = officeSellStatDao.findFirstByParams(params);
|
OfficeSellStat officeSellStat = officeSellStatDao.findFirstByParams(params);
|
||||||
Double avgPrice = officeSellStat.getAvgPrice();
|
Double avgPrice = Double.valueOf(officeSellStat.getAvgPrice());
|
||||||
if (avgPrice != null) {
|
if (avgPrice != null) {
|
||||||
Double factor = 1.0;
|
Double factor = 1.0;
|
||||||
if (evaluation.getFitment() != null) {
|
if (evaluation.getFitment() != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user