From a87813353bfcc1bea7846cfdb5e8dfdcaded86f6 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sun, 07 Mar 2021 15:49:58 +0800
Subject: [PATCH] 20210307

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

diff --git a/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml b/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml
index 1681cc1..6600d0d 100644
--- a/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml
+++ b/src/main/resources/mapper/modules/MemberCoinWithdrawMapper.xml
@@ -108,16 +108,15 @@
 		FROM
 			member_coin_withdraw s left join member m on m.id = s.member_id
 		 <where>
-		 	s.member_id not in (26,187,454)
+		 	s.member_id in (select id from member a where
+                 ( FIND_IN_SET(#{record.inviteId}, a.referer_ids) or a.id = #{record.memberId} )
+                 <if test="record.isTest != null and record.isTest != '' ">
+                     and a.account_type = #{record.isTest}
+                 </if>
+		 	)
 			<if test="record != null" >
-                <if test="record.account!=null and record.account!=''">
-                     and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})
-                </if>
                 <if test="record.isInside!=null and record.isInside!=''">
                     and s.is_inside= #{record.isInside}
-                </if>
-                <if test="record.isTest!=null and record.isTest!=''">
-                    and m.account_type= #{record.isTest}
                 </if>
                 <if test="record.status!=null and record.status!=''">
                     and s.status= #{record.status}

--
Gitblit v1.9.1