| | |
| | | from dapp_member a |
| | | left join dapp_wallet_coin b on a.id = b.member_id |
| | | left join dapp_member c on a.referer_id = c.invite_id |
| | | left join member_coin_address d on d.member_id = a.id |
| | | left join member_coin_address d on d.member_id = a.id and d.is_biyict = 1 and d.tag = 'TRC20' |
| | | <where> |
| | | <!-- <if test="record.currentUser != null">--> |
| | | <!-- and referer_id = (select invite_id from dapp_user_member_relate where user_id=#{record.currentUser})--> |
| | | <!-- </if>--> |
| | | and d.is_biyict = 1 and d.tag = 'TRC20' |
| | | |
| | | <if test="record.description!=null and record.description!=''"> |
| | | and a.id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)) |
| | | </if> |