From 8f720d592d6ea2229cac4c051828af39f8425325 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 03 Jun 2024 11:45:00 +0800
Subject: [PATCH] 批量转账

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

diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml
index 761dc52..8595517 100644
--- a/src/main/resources/mapper/dapp/DappMemberDao.xml
+++ b/src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -91,7 +91,7 @@
                 and referer_id=#{inviteId}
             </if>
             <if test="type==2">
-                and find_in_set(#{inviteId}, fee_profit_ids)
+                and find_in_set(#{inviteId}, referer_ids)
             </if>
         </where>
     </select>
@@ -148,4 +148,20 @@
             balance = #{record.balance}
         where id=#{record.id} and version=#{record.version}
     </update>
+
+    <select id="findInviteListInPage" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
+        SELECT
+        a.*
+        FROM
+        dapp_member a
+        <where>
+            <if test="record.inviteId != null and record.inviteId != ''">
+                and find_in_set(#{record.inviteId}, a.referer_ids)
+            </if>
+            <if test="record.address != null and record.address != ''">
+                and a.address = #{record.address}
+            </if>
+        </where>
+        order by a.CREATE_TIME desc
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1