From b03e3108cfb6a35e3c36cdf4f0c860df906b8456 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 29 Mar 2022 17:01:37 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/dapp/DappMemberDao.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml index 95db780..7434256 100644 --- a/src/main/resources/mapper/dapp/DappMemberDao.xml +++ b/src/main/resources/mapper/dapp/DappMemberDao.xml @@ -13,6 +13,9 @@ <select id="selectInPage" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> select * from dapp_member <where> + <if test="record.currentUser != null"> + and referer_id = (select invite_id from dapp_user_member_relate where user_id=#{record.currentUser}) + </if> <if test="record.accountStatus != null"> and account_status = #{record.accountStatus} </if> @@ -28,4 +31,9 @@ </where> order by create_time desc </select> + + <select id="selectAllMemberForInCome" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> + select * from dapp_member + where account_status=1 + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1