From 655797d038e26cb8010c273c8ddbc88a4d97b59a Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期四, 25 五月 2023 11:47:06 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
index 2a59ca7..bce4925 100644
--- a/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/report/ReportFeeStatisticsServiceDaoImplMapper.xml
@@ -753,4 +753,32 @@
group by a.owner_id,pfc.fee_type_cd,a.community_id
</select>
+
+ <!-- 浼樻儬璐圭敤-->
+ <select id="getDiscountFee" parameterType="Map" resultType="Map">
+ select SUM(t.discount_amount) discountFee
+ from pay_fee_detail_month t
+ where 1=1
+ and t.status_cd = '0'
+ and t.detail_id != '-1'
+ and t.discount_amount > 0
+ and t.community_id= #{communityId}
+ and t.cur_month_time > #{startDate}
+ and t.cur_month_time < #{endDate}
+ </select>
+
+ <!-- 婊炵撼閲戣垂鐢�-->
+ <select id="getLateFee" parameterType="Map" resultType="Map">
+ select SUM(t.discount_amount) lateFee
+ from pay_fee_detail_month t
+ where 1=1
+ and t.status_cd = '0'
+ and t.detail_id != '-1'
+ and t.discount_amount < 0
+ and t.community_id= #{communityId}
+ and t.cur_month_time > #{startDate}
+ and t.cur_month_time < #{endDate}
+ </select>
+
+
</mapper>
--
Gitblit v1.8.0