From fccf8f68b2e47457a97575fa0228cc25052c71a5 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期三, 01 十一月 2023 01:16:08 +0800
Subject: [PATCH] 优化代码
---
service-report/src/main/java/com/java110/report/dao/impl/ReportCommunityServiceDaoImpl.java | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 107 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
index ab42006..c742fbf 100755
--- 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
@@ -127,4 +127,111 @@
return communityDtos;
}
+
+ @Override
+ public int queryHisOwnerCarCount(Map info) {
+ logger.debug("鏌ヨ杞﹁締绠$悊鏁版嵁 鍏ュ弬 info : {}", info);
+
+ List<Map> businessOwnerCarInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisOwnerCarCount", info);
+ if (businessOwnerCarInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessOwnerCarInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryHisOwnerCars(Map info) {
+ logger.debug("鏌ヨ杞﹁締绠$悊淇℃伅 鍏ュ弬 info : {}", info);
+
+ List<Map> businessOwnerCarInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisOwnerCars", info);
+
+ return businessOwnerCarInfos;
+ }
+
+ @Override
+ public int queryHisOwnerCount(Map info) {
+ logger.debug("鏌ヨqueryHisOwnerCount 鍏ュ弬 info : {}", info);
+
+ List<Map> businessOwnerCarInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisOwnerCount", info);
+ if (businessOwnerCarInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessOwnerCarInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryHisOwners(Map info) {
+ logger.debug("鏌ヨqueryHisOwners 鍏ュ弬 info : {}", info);
+
+ List<Map> businessOwnerCarInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisOwners", info);
+
+ return businessOwnerCarInfos;
+ }
+
+ @Override
+ public int queryHisRoomCount(Map info) {
+ logger.debug("鏌ヨ queryHisRoomCount 鍏ュ弬 info : {}", info);
+
+ List<Map> infos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisRoomCount", info);
+ if (infos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(infos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryHisRooms(Map info) {
+ logger.debug("鏌ヨ queryHisRooms 鍏ュ弬 info : {}", info);
+
+ List<Map> infos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisRooms", info);
+
+ return infos;
+ }
+
+ @Override
+ public int queryHisFeeCount(Map info) {
+ logger.debug("鏌ヨqueryHisFeeCount 鍏ュ弬 info : {}", info);
+
+ List<Map> businessOwnerCarInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisFeeCount", info);
+ if (businessOwnerCarInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessOwnerCarInfos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryHisFees(Map info) {
+ logger.debug("鏌ヨ queryHisFees 鍏ュ弬 info : {}", info);
+
+ List<Map> businessOwnerCarInfos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisFees", info);
+
+ return businessOwnerCarInfos;
+ }
+
+ @Override
+ public int queryHisFeeConfigCount(Map info) {
+ logger.debug("鏌ヨ queryHisFeeConfigCount 鍏ュ弬 info : {}", info);
+
+ List<Map> infos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisFeeConfigCount", info);
+ if (infos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(infos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> queryHisFeeConfigs(Map info) {
+ logger.debug("鏌ヨ queryHisFees 鍏ュ弬 info : {}", info);
+
+ List<Map> infos = sqlSessionTemplate.selectList("reportCommunityServiceDaoImpl.queryHisFeeConfigs", info);
+
+ return infos;
+ }
+
+
}
--
Gitblit v1.8.0