From 76fa590342d828d8df67a6dbefbd30170c3a9f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Wed, 25 Aug 2021 15:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=91=E4=B8=80=E5=B9=B4=E7=A7=9F=E9=87=91?= =?UTF-8?q?=E8=B5=B0=E5=8A=BF=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fangjia/open/controllers/PropertyController.java | 4 ++-- .../open/controllers/weixin/CcbRentController.java | 9 ++++++++- 2 files changed, 10 insertions(+), 3 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 e75123689..1ba157ee5 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 @@ -5295,8 +5295,8 @@ public class PropertyController { //近一年户型租金走势 - Map trendsMap = districtRoomSqmetreRentService.getRentTrends(district.getCity(), district.getRegion(), district.getName(), room, -12); -// Map trendsMap = districtStatRentService.getRentTrend(district.getCity(), district.getRegion(), district.getDistrictName(), -12); + // Map trendsMap = districtRoomSqmetreRentService.getRentTrends(district.getCity(), district.getRegion(), district.getName(), room, -12); + Map trendsMap = districtStatRentService.getRentTrend(district.getCity(), district.getRegion(), district.getDistrictName(), -12); if (MapUtils.isNotEmpty(trendsMap)) { Map distMap = (Map) trendsMap.get("distMap"); Map trendMap = (Map) distMap.get(String.valueOf(trendsMap.get("room"))); diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java index 6f3646ad6..2dd5ab077 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/weixin/CcbRentController.java @@ -22,6 +22,7 @@ import com.fangjia.service.datastore.DistrictService; import com.fangjia.service.datastore.EvaluationService; import com.fangjia.service.datastore.HouseService; import com.fangjia.service.district.DistrictRoomSqmetreRentService; +import com.fangjia.service.district.DistrictStatRentService; import com.fangjia.service.district.RentDealPriceService; import com.fangjia.service.mongo.fangjia.FileService; import com.fangjia.service.mongo.fangjia.SeawaterService; @@ -67,6 +68,7 @@ public class CcbRentController { private DistrictService districtService; private SeawaterService seawaterService; + private DistrictStatRentService districtStatRentService; private DistrictRoomSqmetreRentService districtRoomSqmetreRentService; private EvaluationService evaluationService; private HouseService houseService; @@ -286,7 +288,8 @@ public class CcbRentController { } //近一年户型租金走势 - Map trendsMap = districtRoomSqmetreRentService.getRentTrends(district.getCity(), district.getRegion(), district.getName(), room, -12); + //Map trendsMap = districtRoomSqmetreRentService.getRentTrends(district.getCity(), district.getRegion(), district.getName(), room, -12); + Map trendsMap = districtStatRentService.getRentTrend(district.getCity(), district.getRegion(), district.getDistrictName(), -12); if (MapUtils.isNotEmpty(trendsMap)) { Map distMap = (Map) trendsMap.get("distMap"); Map trendMap = (Map) distMap.get(String.valueOf(trendsMap.get("room"))); @@ -653,4 +656,8 @@ public class CcbRentController { public void setFileService(FileService fileService) { this.fileService = fileService; } + + public void setDistrictStatRentService(DistrictStatRentService districtStatRentService) { + this.districtStatRentService = districtStatRentService; + } }