From 21c4edde92e2c7bade302db52329422821f0a8d5 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 08 Jun 2022 19:23:45 +0800 Subject: [PATCH] fix some problem --- src/main/resources/mapper/dapp/DappMemberDao.xml | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml index a2b2370..6341fcc 100644 --- a/src/main/resources/mapper/dapp/DappMemberDao.xml +++ b/src/main/resources/mapper/dapp/DappMemberDao.xml @@ -4,6 +4,9 @@ <select id="selectByAddress" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> select * from dapp_member where address=#{address} + <if test="chain != null and chain != ''"> + and chain_type=#{chain} + </if> </select> <select id="selectMemberInfoByInviteId" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> @@ -34,7 +37,7 @@ <select id="selectAllMemberForInCome" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> select * from dapp_member - where account_status=1 + where account_status=1 and source = 1 </select> <select id="selectAgentMemberList" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> @@ -66,6 +69,7 @@ </foreach> </if> </where> + order by id desc <if test="size != null"> limit ${size} </if> -- Gitblit v1.9.1