From ea552b6b0aa7868126ef27f6c4edf9adfcb196e7 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 11 Aug 2023 18:40:13 +0800
Subject: [PATCH] 数据修改

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

diff --git a/src/main/resources/mapper/dapp/DappFundFlowDao.xml b/src/main/resources/mapper/dapp/DappFundFlowDao.xml
index c16c84a..8e7ae83 100644
--- a/src/main/resources/mapper/dapp/DappFundFlowDao.xml
+++ b/src/main/resources/mapper/dapp/DappFundFlowDao.xml
@@ -112,7 +112,6 @@
     <select id="selectInfoById" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity">
         select a.* from dapp_fund_flow a
         where a.id = #{id}
-          for update
     </select>
 
     <update id="updateStatusById">
@@ -188,4 +187,13 @@
           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