From b2b5bdf6f42597e582da96aa56707e1f68d3936e Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 10 五月 2022 11:41:44 +0800
Subject: [PATCH] 优化 费用
---
service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 57 insertions(+), 1 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..8f4e592
--- 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,10 +2,12 @@
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;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
import org.springframework.stereotype.Service;
import java.util.List;
@@ -44,4 +46,58 @@
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;
+ }
+
+ @Override
+ public List<Map> queryRoomStructures(Map info) {
+ logger.debug("鏌ヨqueryRoomStructures淇℃伅 鍏ュ弬 info : {}", JSONObject.toJSONString(info));
+
+ List<Map> communityDtos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryRoomStructures", info);
+
+ return communityDtos;
+ }
+
+ @Override
+ public List<Map> queryCarStructures(Map info) {
+ logger.debug("鏌ヨqueryCarStructures淇℃伅 鍏ュ弬 info : {}", JSONObject.toJSONString(info));
+
+ List<Map> communityDtos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryCarStructures", info);
+
+ return communityDtos;
+ }
}
--
Gitblit v1.8.0