显示城市楼盘总数
This commit is contained in:
+2
@@ -188,6 +188,8 @@ public class TrendController {
|
||||
// avgPrice = model.getRegionStatBo().getAvgPrice();
|
||||
// }
|
||||
|
||||
int count = districtService.findCityDistrictCount(city);
|
||||
model.setCount(count);
|
||||
model.setTrendView(trendView);
|
||||
//model.setLastestHouse(getRelatedHouse(model.getRegion(), avgPrice));
|
||||
return model;
|
||||
|
||||
@@ -53,6 +53,7 @@ public class TrendModel extends BaseModel implements TrendViewModel {
|
||||
private int showBlock; // 小区走势图里显示板块线,不为0时显示
|
||||
private String errMsg; //错误信息
|
||||
private int code; //错误code 1成功 -1失败
|
||||
private int count;
|
||||
public String getKeyword() {
|
||||
return keyword;
|
||||
}
|
||||
@@ -317,4 +318,11 @@ public class TrendModel extends BaseModel implements TrendViewModel {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
|
||||
<div class="trend01b">
|
||||
<#if districtStatBo?? || regionStatBo??>
|
||||
<#if count??><div><em>${count!}</em><label>楼盘总量</label></div></#if>
|
||||
<#if districtStatBo??>
|
||||
<div><em><#if districtStatBo.lastTimeDistrictStat??>${districtStatBo.lastTimeDistrictStat.avgPrice}<#else>暂无</#if></em><label>上周均价(元/㎡)</label></div>
|
||||
<div><em><#if districtStatBo.districtStat??>${districtStatBo.districtStat.avgPrice}<#else>暂无</#if></em><label>本周均价(元/㎡)</label></div>
|
||||
|
||||
Reference in New Issue
Block a user