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/ReportFeeStatisticsServiceDaoImpl.java | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeStatisticsServiceDaoImpl.java b/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeStatisticsServiceDaoImpl.java
index 5d19cb2..a52df22 100644
--- a/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeStatisticsServiceDaoImpl.java
+++ b/service-report/src/main/java/com/java110/report/dao/impl/ReportFeeStatisticsServiceDaoImpl.java
@@ -445,4 +445,42 @@
return infos;
}
+ @Override
+ public long getMonthOweDetailCount(Map info) {
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getMonthOweDetailCount", info);
+
+ if (infos == null || infos.size() < 1) {
+ return 0;
+ }
+
+ return Long.parseLong(infos.get(0).get("count").toString());
+ }
+
+ @Override
+ public List<Map> getMonthOweDetailInfo(Map info) {
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getMonthOweDetailInfo", info);
+ return infos;
+ }
+
+ @Override
+ public double getMonthOweDetailAmount(Map info) {
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getMonthOweDetailAmount", info);
+
+ if (infos == null || infos.size() < 1) {
+ return 0;
+ }
+
+ return Double.parseDouble(infos.get(0).get("amount").toString());
+ }
+
+ @Override
+ public double getMonthReceivedDetailAmount(Map info) {
+ List<Map> infos = sqlSessionTemplate.selectList("reportFeeStatisticsServiceDaoImpl.getMonthReceivedDetailAmount", info);
+
+ if (infos == null || infos.size() < 1) {
+ return 0;
+ }
+
+ return Double.parseDouble(infos.get(0).get("amount").toString());
+ }
}
--
Gitblit v1.8.0