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 2a187dc..6341fcc 100644 --- a/src/main/resources/mapper/dapp/DappMemberDao.xml +++ b/src/main/resources/mapper/dapp/DappMemberDao.xml @@ -3,7 +3,10 @@ <mapper namespace="cc.mrbird.febs.dapp.mapper.DappMemberDao"> <select id="selectByAddress" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> - select * from dapp_member where address=#{address} and chain_type=#{chain} + 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"> @@ -66,6 +69,7 @@ </foreach> </if> </where> + order by id desc <if test="size != null"> limit ${size} </if> -- Gitblit v1.9.1