From 09c3fd87f7113f3b4e3066b718f9b9a4b11d821d Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 10 Aug 2023 15:51:15 +0800
Subject: [PATCH] 数据修改

---
 src/main/resources/mapper/dapp/DappFundFlowDao.xml |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/dapp/DappFundFlowDao.xml b/src/main/resources/mapper/dapp/DappFundFlowDao.xml
index 2e67ae5..9e4e74e 100644
--- a/src/main/resources/mapper/dapp/DappFundFlowDao.xml
+++ b/src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -179,4 +179,22 @@
         where a.system_profit_id = #{record.id}
         order by a.CREATE_TIME desc
     </select>
+
+    <select id="selectListByMemberIdAndTypeAndDate" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity">
+        select * from dapp_fund_flow
+        where
+              member_id = #{memberId}
+          and date_format(create_time, '%Y-%m-%d') = date_format(#{dateStr}, '%Y-%m-%d')
+          and type = #{type}
+          and status = 2
+    </select>
+
+    <select id="selectListByTypeAndDate" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity">
+        select member_id as memberId,ifnull(sum(amount), 0) as amount
+        from dapp_fund_flow
+        where date_format(create_time, '%Y-%m-%d') = date_format(#{dateStr}, '%Y-%m-%d')
+          and type = #{type}
+          and status = 2
+        group by member_id
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1