From c4f6cf660868fcc3fbd846f72cd873673c418ca6 Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Fri, 19 Dec 2025 17:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=8C=BA=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BB=B7=E6=A0=BC=E6=94=B9=E4=B8=BA=E6=9C=88=E5=BA=A6?= =?UTF-8?q?=E5=9D=87=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../open/controllers/PropertyController.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/PropertyController.java b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/PropertyController.java index c4a7831bf..649ffb3d1 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/PropertyController.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/PropertyController.java @@ -760,12 +760,14 @@ public class PropertyController { districtInfoDto.setAddress(district.getAddress()); //int avgPrice = districtStatService.findLatestDistrictAvgPrice(new DistrictKey(district), null); // 返回2B价格,小程序用,其他也改为2B - int avgPrice = districtStatService.findLatestDistrictAvgPrice2B(new DistrictKey(district), null); - if (avgPrice == 0) { - avgPrice = districtStatService.findLatestDistrictAvgPrice2B(new DistrictKey(district), DateUtil.add(new Date(), -7)); - } - if (avgPrice != 0) { - districtInfoDto.setAvgPrice(avgPrice); +// int avgPrice = districtStatService.findLatestDistrictAvgPrice2B(new DistrictKey(district), null); +// if (avgPrice == 0) { +// avgPrice = districtStatService.findLatestDistrictAvgPrice2B(new DistrictKey(district), DateUtil.add(new Date(), -7)); +// } + + DistrictSellStat sellStat = districtSellStatService.findFirstByParams(district.getCity(), district.getRegion(), district.getName()); + if (sellStat != null) { + districtInfoDto.setAvgPrice(sellStat.getAvgPrice()); } districtInfoDto.setPropertyType(district.getEstateType2()); if (district.getLat2() != null && district.getLat2() != 0 && district.getLng2() != null