均价保持一致

This commit is contained in:
沈健
2025-02-10 16:23:27 +08:00
parent d2e68e5a97
commit 29a456e945
2 changed files with 11 additions and 4 deletions
@@ -3665,12 +3665,14 @@ public Object checkUserAction(EvaluationModel model, HttpServletRequest req, Htt
SimpleDateFormat format = new SimpleDateFormat("yyyy.MM");
for (Date key : districtStatMap.keySet()) {
DistrictStat ds = districtStatMap.get(key);
districtMap.put(format.format(ds.getWeekend()),ds.getAvgPrice());
Integer avgPrice = ds.getAvg_price_2b() != null ? ds.getAvg_price_2b() : ds.getAvgPrice();
districtMap.put(format.format(ds.getWeekend()), avgPrice);
}
for (Date key : villaDistrictStatMap.keySet()) {
DistrictStat ds = villaDistrictStatMap.get(key);
districtMap.put(format.format(ds.getWeekend()),ds.getAvgPrice());
Integer avgPrice = ds.getAvg_price_2b() != null ? ds.getAvg_price_2b() : ds.getAvgPrice();
districtMap.put(format.format(ds.getWeekend()), avgPrice);
}
}