优化
This commit is contained in:
+2
-2
@@ -167,7 +167,7 @@ public class TrendController {
|
||||
model.setRegionItems(getRegionItems(model));
|
||||
model.setBlockItems(getRegionBlocks(model));
|
||||
|
||||
List<CitySellStat> citySellStats = citySellStatService.getAllWithMonths(city, 2);
|
||||
List<CitySellStat> citySellStats = citySellStatService.getAllWithCurrMonths(city, 2);
|
||||
model.setCityStatInfoBos(findCitysAvgPricePlus(city,citySellStats.get(0).getDate(), 10));
|
||||
model.setDefaultCityName(city);
|
||||
TrendView trendView = TrendViewFactory.getInstance().create(model);
|
||||
@@ -712,7 +712,7 @@ public class TrendController {
|
||||
} else if (city != null) {
|
||||
//regionStatList = regionStatService.findRegionStat(city, null, null, currentDate, weeks);
|
||||
int month = weeks / 4;
|
||||
citySellStatList = citySellStatService.getAllWithMonths(city, month);
|
||||
citySellStatList = citySellStatService.getAllWithCurrMonths(city, month);
|
||||
oprions.put("name", city);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user