From c8195a8a1c34b9fa8db9aa4dc340d4344044ce97 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 29 六月 2021 20:52:03 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java b/service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java
old mode 100644
new mode 100755
index fb3a117..a55be46
--- a/service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java
+++ b/service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java
@@ -2,6 +2,8 @@
import com.alibaba.fastjson.JSONObject;
import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.dto.community.CommunityDto;
+import com.java110.dto.report.ReportCarDto;
import com.java110.dto.report.ReportRoomDto;
import com.java110.report.dao.IReportCommunityServiceDao;
import org.slf4j.Logger;
@@ -44,4 +46,40 @@
return roomDtos;
}
+
+ /**
+ * 缁熻杞﹁締
+ *
+ * @param reportCarDto
+ * @return
+ */
+ @Override
+ public int getCarCount(ReportCarDto reportCarDto) {
+ logger.debug("鏌ヨ璐圭敤鏈堢粺璁℃暟鎹� 鍏ュ弬 info : {}", JSONObject.toJSONString(reportCarDto));
+
+ List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.getCarCount", reportCarDto);
+ if (businessReportFeeMonthStatisticsInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessReportFeeMonthStatisticsInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<ReportCarDto> getCarParkingSpace(ReportCarDto reportCarDto) {
+ logger.debug("鏌ヨ鎴垮眿淇℃伅 鍏ュ弬 info : {}", JSONObject.toJSONString(reportCarDto));
+
+ List<ReportCarDto> carDtos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.getCarParkingSpace", reportCarDto);
+
+ return carDtos;
+ }
+
+ @Override
+ public List<Map> getCommunitys(Map communityDto) {
+ logger.debug("鏌ヨgetCommunitys淇℃伅 鍏ュ弬 info : {}", JSONObject.toJSONString(communityDto));
+
+ List<Map> communityDtos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.getCommunitys", communityDto);
+
+ return communityDtos;
+ }
}
--
Gitblit v1.8.0