| | |
| | | </select> |
| | | |
| | | <select id="selectInPage" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> |
| | | select * from dapp_member a |
| | | select a.*, |
| | | b.total_amount totalAmount, |
| | | b.frozen_amount frozenAmount, |
| | | b.available_amount availableAmount |
| | | from dapp_member a |
| | | left join dapp_wallet_coin b on a.id = b.member_id |
| | | <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.inviteId != null and record.inviteId != ''"> |
| | | and a.invite_id = #{record.inviteId} |
| | | </if> |
| | | <if test="record.username != null and record.username != ''"> |
| | | and a.username like CONCAT('%',#{record.username},'%') |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | |
| | | inner join dapp_member b on a.member_id = b.id |
| | | where |
| | | a.total_amount <![CDATA[ >= ]]> 51 |
| | | and b.referer_id = #{inviteId} |
| | | and find_in_set(#{inviteId}, b.referer_ids) |
| | | and b.identity = #{identity} |
| | | |
| | | </select> |
| | |
| | | <select id="getAppVersionListInPage" resultType="cc.mrbird.febs.dapp.entity.AppVersion"> |
| | | select a.* from app_version a |
| | | </select> |
| | | |
| | | <select id="getChargeListInPage" resultType="cc.mrbird.febs.dapp.entity.MemberCoinChargeEntity"> |
| | | select |
| | | a.*,b.username username |
| | | from member_coin_charge a |
| | | inner join dapp_member b on b.id = a.member_id |
| | | order by create_time desc |
| | | </select> |
| | | </mapper> |