From 22819e7b84e661b65b43b8a3c8467080b1b23fa4 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 05 Dec 2022 15:32:48 +0800
Subject: [PATCH] 20221130

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

diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml
index 4ea0687..0bc33c9 100644
--- a/src/main/resources/mapper/dapp/DappMemberDao.xml
+++ b/src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -165,4 +165,28 @@
         from dapp_member a
         where referer_id = #{refererId}
     </select>
+
+    <select id="selectCountByAccountTypeAndRefererId" resultType="java.lang.Integer">
+        select count(id)
+        from dapp_member
+        <where>
+            referer_id = #{refererId}
+            <if test="accountType != null">
+                and account_type = #{accountType}
+            </if>
+        </where>
+    </select>
+
+    <select id="findTeamInfoListInPage" resultType="cc.mrbird.febs.dapp.vo.AdminTeamInfoVo">
+        select
+            a.address address,
+            a.invite_id inviteId,
+            a.account_type accountType,
+            a.active_status activeStatus,
+            a.id id
+        from dapp_member a
+        where
+            (a.id in (select id from dapp_member where FIND_IN_SET(#{record.inviteId}, referer_ids)))
+        order  by a.create_time desc
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1