xiaoyong931011
2023-05-19 24ceb7b6168f04d1727ad1bbf4ee44d33a545cf4
src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -14,12 +14,8 @@
    </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})
@@ -176,4 +172,25 @@
            </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>