From e92fd4ee90a7296fcb2336409d128dfd1bf653f4 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 26 Oct 2022 15:01:06 +0800
Subject: [PATCH] 20221021

---
 src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml b/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
index c771609..1a037e2 100644
--- a/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
+++ b/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
@@ -4,7 +4,9 @@
 
     <select id="findMemberWithdrawCoinInPage" resultType="cc.mrbird.febs.dapp.vo.AdminMemberCoinWithdrawVo">
         SELECT
-        *
+        s.*,
+        (select a.username from dapp_member a where s.address = a.invite_id and s.is_inside = 'Y') usernameIn,
+        m.username username
         FROM
         member_coin_withdraw s
         left join dapp_member m on m.id = s.member_id
@@ -24,4 +26,13 @@
         order by s.create_time desc
     </select>
 
+    <select id="selectByMemberIdAndCreateTime" resultType="java.lang.Integer">
+        SELECT
+        count (a.id)
+        FROM
+        member_coin_withdraw a
+        where a.member_id = #{memberId}
+            and date_format(a.create_time, '%Y-%m-%d') = #{createTime}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1