From a37e2677d0b55a23296be2027a00f48e82e01ecf Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 14 May 2021 18:17:08 +0800
Subject: [PATCH] modify

---
 src/main/resources/mapper/member/MemberDao.xml |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/member/MemberDao.xml b/src/main/resources/mapper/member/MemberDao.xml
index a16cad1..7c11538 100644
--- a/src/main/resources/mapper/member/MemberDao.xml
+++ b/src/main/resources/mapper/member/MemberDao.xml
@@ -56,16 +56,35 @@
         <association property="ydBasicLevelSettingEntity" javaType="com.xcong.excoin.modules.yunding.entity.YdBasicLevelSettingEntity">
             <result property="level" column="level"/>
             <result property="usdtRatio" column="usdt_ratio" />
+            <result property="xchRatio" column="xch_ratio" />
         </association>
     </resultMap>
 
     <select id="selectYdParentAgent" resultMap="memberAgentMap">
-        select a.*, b.level, b.usdt_ratio from member a
+        select a.*, b.level, b.usdt_ratio, b.xch_ratio from member a
         inner join yd_basic_level_setting b on a.agent_level=b.id
-        where a.invite_id in
+        where a.invite_id!='rxadr3' and a.invite_id in
         <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
             #{item}
         </foreach >
         order by id desc
     </select>
+
+    <select id="selectMemberByInviteIds" resultType="com.xcong.excoin.modules.member.entity.MemberEntity">
+        select * from member
+        where invite_id != 'rxadr3' and  invite_id IN
+        <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
+            #{item}
+        </foreach >
+    </select>
+
+    <select id="selectMemberByRefererId" resultType="com.xcong.excoin.modules.member.entity.MemberEntity">
+        select * from member where referer_id=#{refererId} and invite_id!=#{refererId}
+    </select>
+
+    <select id="selectTeamAgentList" resultType="com.xcong.excoin.modules.member.entity.MemberEntity">
+        select * from member a
+        where (find_in_set(#{inviteId}, a.referer_ids) or invite_id=#{inviteId})
+        and agent_level in (1, 2)
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1