房价查询 房产估值
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.fangjia.service.bo;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class CityStatInfoBo implements Serializable{
|
||||
|
||||
private static final long serialVersionUID = 5043960126885688455L;
|
||||
|
||||
private int seq;
|
||||
private String city;//³ÇÊÐÃû
|
||||
private int avgPrice;//¾ù¼Û
|
||||
private int huanBi;//»·±È
|
||||
private int tongBi;//ͬ±È
|
||||
|
||||
|
||||
public int getSeq() {
|
||||
return seq;
|
||||
}
|
||||
|
||||
public void setSeq(int seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public int getAvgPrice() {
|
||||
return avgPrice;
|
||||
}
|
||||
|
||||
public void setAvgPrice(int avgPrice) {
|
||||
this.avgPrice = avgPrice;
|
||||
}
|
||||
|
||||
public int getHuanBi() {
|
||||
return huanBi;
|
||||
}
|
||||
|
||||
public void setHuanBi(int huanBi) {
|
||||
this.huanBi = huanBi;
|
||||
}
|
||||
|
||||
public int getTongBi() {
|
||||
return tongBi;
|
||||
}
|
||||
|
||||
public void setTongBi(int tongBi) {
|
||||
this.tongBi = tongBi;
|
||||
}
|
||||
}
|
||||
+3
-1
@@ -191,7 +191,9 @@ public interface RegionStatService {
|
||||
*/
|
||||
public List<RegionStat> findRegionBlockStat(final String city,final String region ,final String block,final Date startDate, final Date endDate, final String periodModel);
|
||||
|
||||
public List<RegionStat> findCityStatByWeekend(Date weekend);
|
||||
public List<RegionStat> findCityStatByWeekend(Date weekend,int limit);
|
||||
|
||||
public List<RegionStat> findCityStatByWeekend(Date weekend,List<String> cityNames, int limit);
|
||||
|
||||
public int findRegionStatBalanceValue(String city, String region, String block, Date calcDate, Date refDate) ;
|
||||
|
||||
|
||||
+23
-3
@@ -698,9 +698,29 @@ public class RegionStatServiceImpl implements RegionStatService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RegionStat> findCityStatByWeekend(Date weekend) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
public List<RegionStat> findCityStatByWeekend(Date weekend,int limit) {
|
||||
if (weekend == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
List<QueryParam> params = new ArrayList<QueryParam>();
|
||||
params.add(new QueryParam("weekend", weekend));
|
||||
params.add(new QueryParam("cat", "城市"));
|
||||
List<SortParam> sortParams = new ArrayList<SortParam>();
|
||||
sortParams.add(new SortParam("avgPrice", false));
|
||||
return (List<RegionStat>) regionStatDao.findAllByParams(params, sortParams, limit);
|
||||
}
|
||||
@Override
|
||||
public List<RegionStat> findCityStatByWeekend(Date weekend, List<String> cityNames, int limit) {
|
||||
if (weekend == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
List<QueryParam> params = new ArrayList<QueryParam>();
|
||||
params.add(new QueryParam("weekend", weekend));
|
||||
params.add(new QueryParam("cat", "城市"));
|
||||
params.add(new QueryParam("city", new BasicDBObject("$in", cityNames)));
|
||||
List<SortParam> sortParams = new ArrayList<SortParam>();
|
||||
sortParams.add(new SortParam("avgPrice", false));
|
||||
return (List<RegionStat>) regionStatDao.findAllByParams(params, sortParams, limit);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user