From f14c50cb0036d3ddd655ce4e34732ba396a836c4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:42:03 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
index fa5c5e9..a5b26aa 100644
--- a/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
@@ -821,7 +821,7 @@
<!-- 鏌ヨ棰勫瓨璐︽埛-->
<select id="getPrestoreAccount" parameterType="Map" resultType="Map">
- select ifnull(SUM(t.discount_amount),0.0) prestoreAccount lateFee
+ select ifnull(SUM(t.amount),0.0) prestoreAccount
from account_detail t
INNER JOIN account ac on t.acct_id = ac.acct_id and ac.status_cd = '0'
where 1=1
@@ -835,7 +835,7 @@
<!-- 鏌ヨ璐︽埛鎵f-->
<select id="getWithholdAccount" parameterType="Map" resultType="Map">
- select ifnull(SUM(t.discount_amount),0.0) withholdAccount lateFee
+ select ifnull(SUM(t.amount),0.0) withholdAccount
from account_detail t
INNER JOIN account ac on t.acct_id = ac.acct_id and ac.status_cd = '0'
where 1=1
@@ -852,7 +852,7 @@
select ifnull(sum(t.pay_charge),0.0) tempCarFee
from car_inout_payment t
where 1=1
- and ac.part_id= #{communityId}
+ and t.community_id = #{communityId}
and t.create_time > #{startDate}
and t.create_time < #{endDate}
and t.status_cd = '0'
--
Gitblit v1.8.0