改造估值也城市均价
This commit is contained in:
+3
@@ -45,4 +45,7 @@ public interface CitySellStatService {
|
||||
CitySellStat findStartStat(String city);
|
||||
|
||||
List<CitySellStat> findCityOrderByAvgPrice(final String city, final Integer startDate, final int count) ;
|
||||
|
||||
List<CitySellStat> findCitySellStat(String city, Integer startDate, Integer endDate);
|
||||
|
||||
}
|
||||
|
||||
+11
@@ -11,6 +11,7 @@ import com.fangjia.dal.common.DistrictKey;
|
||||
import com.fangjia.dal.mongo.dao.CitySellStatDao;
|
||||
import com.fangjia.dal.mongo.model.CitySellStat;
|
||||
import com.fangjia.dal.mongo.model.RegionStat;
|
||||
import com.fangjia.dal.mongo.model.StatFlag;
|
||||
import com.fangjia.service.bo.DistrictStatBo;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
@@ -150,4 +151,14 @@ public class CitySellStatServiceImpl implements CitySellStatService {
|
||||
return citySellStatDao.findAllByParams(q, s, count);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CitySellStat> findCitySellStat(final String city, final Integer startDate, final Integer endDate) {
|
||||
return CacheUtils.getValue(this.getClass(), city, String.valueOf(endDate + startDate),
|
||||
CachePolicyEnum.MIDDLE, new Closure<List<CitySellStat>, String>() {
|
||||
public List<CitySellStat> execute(String input) {
|
||||
return citySellStatDao.findCitySellStat(city, startDate, endDate);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user