| | |
| | | </select> |
| | | |
| | | <select id="selectInPage" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> |
| | | select a.*, |
| | | b.total_amount totalAmount, |
| | | b.frozen_amount frozenAmount, |
| | | b.available_amount availableAmount |
| | | select a.* |
| | | from dapp_member a |
| | | inner join dapp_wallet_coin b on a.id = b.member_id |
| | | <where> |
| | | <if test="record.currentUser != null"> |
| | | and a.referer_id = (select invite_id from dapp_user_member_relate where user_id=#{record.currentUser}) |
| | |
| | | <where> |
| | | referer_id = #{refererId} |
| | | <if test="accountType != null"> |
| | | and account_type = @{accountType} |
| | | and account_type = #{accountType} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="findTeamInfoListInPage" resultType="cc.mrbird.febs.dapp.vo.AdminTeamInfoVo"> |
| | | select |
| | | a.address address, |
| | | a.invite_id inviteId, |
| | | a.account_type accountType, |
| | | a.active_status activeStatus, |
| | | a.id id |
| | | from dapp_member a |
| | | where |
| | | (a.id in (select id from dapp_member where FIND_IN_SET(#{record.inviteId}, referer_ids))) |
| | | order by a.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectByMemberId" resultType="cc.mrbird.febs.dapp.vo.DappMemberInfoVo"> |
| | | select |
| | | a.invite_id inviteId, |
| | | a.account_type accountType |
| | | from dapp_member a |
| | | where id = #{id} |
| | | </select> |
| | | </mapper> |