From 074297ccf3c132231075e505238ae68b64153e44 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 29 九月 2020 17:50:35 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/fee/FeeManualCollectionDetailServiceDaoImplMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/fee/FeeManualCollectionDetailServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/fee/FeeManualCollectionDetailServiceDaoImplMapper.xml
index de387a8..219db50 100644
--- a/java110-db/src/main/resources/mapper/fee/FeeManualCollectionDetailServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/fee/FeeManualCollectionDetailServiceDaoImplMapper.xml
@@ -141,5 +141,17 @@
 
 
     </select>
+    <select id="queryFeeManualCollectionDetailTotalFee" parameterType="Map" resultType="Map">
+        select sum(t.amount) totalFee
+        from fee_manual_collection_detail t
+        where 1 =1
+        <if test="collectionId !=null and collectionId != ''">
+            and t.collection_id= #{collectionId}
+        </if>
+        <if test="feeId !=null and feeId != ''">
+            and t.fee_id= #{feeId}
+        </if>
+    </select>
+
 
 </mapper>

--
Gitblit v1.8.0