Merge branch 'feature_master_xh_standard' into 'master'

第三方均价展示

See merge request !356
This commit is contained in:
2022-07-25 17:26:15 +08:00
3 changed files with 142 additions and 55 deletions
@@ -227,7 +227,7 @@
<td colspan="2"><b>兔博士</b></td> <td colspan="2"><b>兔博士</b></td>
</#if> </#if>
<#if (it.centanetNewPrice)?? || (it.centanetEsfPrice)??> <#if (it.zhongyuanNewPrice)?? || (it.zhongyuanEsfPrice)??>
<td colspan="2"><b>中原地产</b></td> <td colspan="2"><b>中原地产</b></td>
</#if> </#if>
<#if (it.leyoujiaNewPrice)?? || (it.leyoujiaEsfPrice)??> <#if (it.leyoujiaNewPrice)?? || (it.leyoujiaEsfPrice)??>
@@ -247,7 +247,13 @@
</#if> </#if>
<#if (it.yungujiaNewPrice)?? || (it.yungujiaEsfPrice)??> <#if (it.yungujiaNewPrice)?? || (it.yungujiaEsfPrice)??>
<td colspan="2"><b>云估价</b></td> <td colspan="2"><b>云估价</b></td>
</#if> </#if>
<#if (it.jiwuNewPrice)?? || (it.jiwuEsfPrice)??>
<td colspan="2"><b>吉屋</b></td>
</#if>
<#if (it.tsfhouseNewPrice)?? || (it.tsfhouseEsfPrice)??>
<td colspan="2"><b>365房产</b></td>
</#if>
</tr> </tr>
<tr> <tr>
@@ -300,7 +306,7 @@
<td style="width:70px;color:#D3750A">二手房</td> <td style="width:70px;color:#D3750A">二手房</td>
</#if> </#if>
<#if (it.centanetNewPrice)?? || (it.centanetEsfPrice)??> <#if (it.zhongyuanNewPrice)?? || (it.zhongyuanEsfPrice)??>
<td style="width:70px;color:#0C88C7">新房</td> <td style="width:70px;color:#0C88C7">新房</td>
<td style="width:70px;color:#D3750A">二手房</td> <td style="width:70px;color:#D3750A">二手房</td>
</#if> </#if>
@@ -329,10 +335,17 @@
</#if> </#if>
<#if (it.yungujiaNewPrice)?? || (it.yungujiaEsfPrice)??> <#if (it.yungujiaNewPrice)?? || (it.yungujiaEsfPrice)??>
<td style="width:70px;color:#0C88C7">新房</td> <td style="width:70px;color:#0C88C7">新房</td>
<td style="width:70px;color:#D3750A">二手房</td> <td style="width:70px;color:#D3750A">二手房</td>
</#if> </#if>
<#if (it.jiwuNewPrice)?? || (it.jiwuEsfPrice)??>
<td style="width:70px;color:#0C88C7">新房</td>
<td style="width:70px;color:#D3750A">二手房</td>
</#if>
<#if (it.tsfhouseNewPrice)?? || (it.tsfhouseEsfPrice)??>
<td style="width:70px;color:#0C88C7">新房</td>
<td style="width:70px;color:#D3750A">二手房</td>
</#if>
</tr> </tr>
<tr> <tr>
@@ -392,9 +405,9 @@
<td style ="color:#D3750A">${it.tuboshiEsfPrice!}</td> <td style ="color:#D3750A">${it.tuboshiEsfPrice!}</td>
</#if> </#if>
<#if (it.centanetNewPrice)?? || (it.centanetEsfPrice)??> <#if (it.zhongyuanNewPrice)?? || (it.zhongyuanEsfPrice)??>
<td style ="color:#0C88C7">${it.centanetNewPrice!}</td> <td style ="color:#0C88C7">${it.zhongyuanNewPrice!}</td>
<td style ="color:#D3750A">${it.centanetEsfPrice!}</td> <td style ="color:#D3750A">${it.zhongyuanEsfPrice!}</td>
</#if> </#if>
<#if (it.leyoujiaNewPrice)?? || (it.leyoujiaEsfPrice)??> <#if (it.leyoujiaNewPrice)?? || (it.leyoujiaEsfPrice)??>
@@ -422,7 +435,15 @@
<td style ="color:#0C88C7">${it.yungujiaNewPrice!}</td> <td style ="color:#0C88C7">${it.yungujiaNewPrice!}</td>
<td style ="color:#D3750A">${it.yungujiaEsfPrice!}</td> <td style ="color:#D3750A">${it.yungujiaEsfPrice!}</td>
</#if> </#if>
<#if (it.jiwuNewPrice)?? || (it.jiwuEsfPrice)??>
<td style ="color:#0C88C7">${it.jiwuNewPrice!}</td>
<td style ="color:#D3750A">${it.jiwuEsfPrice!}</td>
</#if>
<#if (it.tsfhouseNewPrice)?? || (it.tsfhouseEsfPrice)??>
<td style ="color:#0C88C7">${it.tsfhouseNewPrice!}</td>
<td style ="color:#D3750A">${it.tsfhouseEsfPrice!}</td>
</#if>
</tr> </tr>
</#list> </#list>
<#if averageStatistics?size == 0> <#if averageStatistics?size == 0>
@@ -95,10 +95,10 @@ public class AverageStatistics implements MongoEntity {
private Double tuboshiEsfDiff; private Double tuboshiEsfDiff;
/**中原地产二手房均价*/ /**中原地产二手房均价*/
private Integer centanetNewPrice; private Integer zhongyuanNewPrice;
private Double centanetNewDiff; private Double zhongyuanNewDiff;
private Integer centanetEsfPrice; private Integer zhongyuanEsfPrice;
private Double centanetEsfDiff; private Double zhongyuanEsfDiff;
@@ -155,9 +155,18 @@ public class AverageStatistics implements MongoEntity {
private Integer zhugezhaofangNewPrice; private Integer zhugezhaofangNewPrice;
private Double zhugezhaofangNewDiff; private Double zhugezhaofangNewDiff;
/**吉屋*/
private Integer jiwuEsfPrice;
private Double jiwuEsfDiff;
private Integer jiwuNewPrice;
private Double jiwuNewDiff;
/**365*/
private Integer tsfhouseEsfPrice;
private Double tsfhouseEsfDiff;
private Integer tsfhouseNewPrice;
private Double tsfhouseNewDiff;
private String level;//价格评级 private String level;//价格评级
private Integer lastAvgPrice;//最终价 private Integer lastAvgPrice;//最终价
private String maxDeviate;//偏离度最大的网站,房价网-云估价-房估估 private String maxDeviate;//偏离度最大的网站,房价网-云估价-房估估
@@ -578,22 +587,22 @@ public class AverageStatistics implements MongoEntity {
this.fangguguNewPrice = fangguguNewPrice; this.fangguguNewPrice = fangguguNewPrice;
} }
@Column(name = "centanet_new_price") @Column(name = "zhongyuan_new_price")
public Integer getCentanetNewPrice() { public Integer getZhongyuanNewPrice() {
return centanetNewPrice; return zhongyuanNewPrice;
} }
public void setCentanetNewPrice(Integer centanetNewPrice) { public void setZhongyuanNewPrice(Integer zhongyuanNewPrice) {
this.centanetNewPrice = centanetNewPrice; this.zhongyuanNewPrice = zhongyuanNewPrice;
} }
@Column(name = "centanet_esf_price") @Column(name = "zhongyuan_esf_price")
public Integer getCentanetEsfPrice() { public Integer getZhongyuanEsfPrice() {
return centanetEsfPrice; return zhongyuanEsfPrice;
} }
public void setCentanetEsfPrice(Integer centanetEsfPrice) { public void setZhongyuanEsfPrice(Integer zhongyuanEsfPrice) {
this.centanetEsfPrice = centanetEsfPrice; this.zhongyuanEsfPrice = zhongyuanEsfPrice;
} }
@Column(name = "lianjia_esf_price") @Column(name = "lianjia_esf_price")
@@ -659,22 +668,22 @@ public class AverageStatistics implements MongoEntity {
this.tuboshiEsfDiff = tuboshiEsfDiff; this.tuboshiEsfDiff = tuboshiEsfDiff;
} }
@Column(name = "centanet_new_diff") @Column(name = "zhongyuan_new_diff")
public Double getCentanetNewDiff() { public Double getZhongyuanNewDiff() {
return centanetNewDiff; return zhongyuanNewDiff;
} }
public void setCentanetNewDiff(Double centanetNewDiff) { public void setZhongyuanNewDiff(Double zhongyuanNewDiff) {
this.centanetNewDiff = centanetNewDiff; this.zhongyuanNewDiff = zhongyuanNewDiff;
} }
@Column(name = "centanet_esf_diff") @Column(name = "zhongyuan_esf_diff")
public Double getCentanetEsfDiff() { public Double getZhongyuanEsfDiff() {
return centanetEsfDiff; return zhongyuanEsfDiff;
} }
public void setCentanetEsfDiff(Double centanetEsfDiff) { public void setZhongyuanEsfDiff(Double zhongyuanEsfDiff) {
this.centanetEsfDiff = centanetEsfDiff; this.zhongyuanEsfDiff = zhongyuanEsfDiff;
} }
@Column(name = "master_district_name") @Column(name = "master_district_name")
@@ -1074,19 +1083,76 @@ public class AverageStatistics implements MongoEntity {
public void setFangtanEsfDiff(Double fangtanEsfDiff) { public void setFangtanEsfDiff(Double fangtanEsfDiff) {
this.fangtanEsfDiff = fangtanEsfDiff; this.fangtanEsfDiff = fangtanEsfDiff;
} }
@Column(name = "jiwu_esf_price")
public Integer getJiwuEsfPrice() {
return jiwuEsfPrice;
}
public void setJiwuEsfPrice(Integer jiwuEsfPrice) {
this.jiwuEsfPrice = jiwuEsfPrice;
}
@Column(name = "jiwu_esf_diff")
public Double getJiwuEsfDiff() {
return jiwuEsfDiff;
}
public void setJiwuEsfDiff(Double jiwuEsfDiff) {
this.jiwuEsfDiff = jiwuEsfDiff;
}
@Column(name = "jiwu_new_price")
public Integer getJiwuNewPrice() {
return jiwuNewPrice;
}
public void setJiwuNewPrice(Integer jiwuNewPrice) {
this.jiwuNewPrice = jiwuNewPrice;
}
@Column(name = "jiwu_new_diff")
public Double getJiwuNewDiff() {
return jiwuNewDiff;
}
public void setJiwuNewDiff(Double jiwuNewDiff) {
this.jiwuNewDiff = jiwuNewDiff;
}
@Column(name = "365house_esf_price")
public Integer getTsfhouseEsfPrice() {
return tsfhouseEsfPrice;
}
public void setTsfhouseEsfPrice(Integer tsfhouseEsfPrice) {
this.tsfhouseEsfPrice = tsfhouseEsfPrice;
}
@Column(name = "365house_esf_diff")
public Double getTsfhouseEsfDiff() {
return tsfhouseEsfDiff;
}
public void setTsfhouseEsfDiff(Double tsfhouseEsfDiff) {
this.tsfhouseEsfDiff = tsfhouseEsfDiff;
}
@Column(name = "365house_new_price")
public Integer getTsfhouseNewPrice() {
return tsfhouseNewPrice;
}
public void setTsfhouseNewPrice(Integer tsfhouseNewPrice) {
this.tsfhouseNewPrice = tsfhouseNewPrice;
}
@Column(name = "365house_new_diff")
public Double getTsfhouseNewDiff() {
return tsfhouseNewDiff;
}
public void setTsfhouseNewDiff(Double tsfhouseNewDiff) {
this.tsfhouseNewDiff = tsfhouseNewDiff;
}
} }
@@ -187,11 +187,11 @@ public class AverageStatisticsServiceImpl implements AverageStatisticsService {
Integer zhongyuanPrice = (Integer) dataMap.get("zhongyuan_price"); Integer zhongyuanPrice = (Integer) dataMap.get("zhongyuan_price");
if(null == zhongyuanPrice){ if(null == zhongyuanPrice){
if (isValid(entity.getCentanetEsfPrice())) { if (isValid(entity.getZhongyuanEsfPrice())) {
dataMap.put("zhongyuan_price", entity.getCentanetEsfPrice()); dataMap.put("zhongyuan_price", entity.getZhongyuanEsfPrice());
}else{ }else{
if(isValid(entity.getCentanetNewPrice())){ if(isValid(entity.getZhongyuanNewPrice())){
dataMap.put("zhongyuan_price", entity.getCentanetNewPrice()); dataMap.put("zhongyuan_price", entity.getZhongyuanNewPrice());
} }
} }
} }