| | |
| | | c.username refererName, |
| | | b.total_amount totalAmount, |
| | | b.frozen_amount frozenAmount, |
| | | b.available_amount availableAmount |
| | | b.available_amount availableAmount, |
| | | d.address coinAddress |
| | | 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 |
| | | <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> |
| | |
| | | <if test="record.username != null and record.username != ''"> |
| | | and a.username like CONCAT('%',#{record.username},'%') |
| | | </if> |
| | | <if test="record.coinAddress != null and record.coinAddress != ''"> |
| | | and d.address like CONCAT('%',#{record.coinAddress},'%') |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |