| | |
| | | b.total_amount totalAmount, |
| | | b.frozen_amount frozenAmount, |
| | | b.available_amount availableAmount, |
| | | d.address coinAddress |
| | | from dapp_member a |
| | | IFNULL(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 |
| | | 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> |
| | |
| | | left join dapp_member b on b.id = a.member_id |
| | | <where> |
| | | date_format(a.create_time, '%Y-%m-%d') = #{record.createTimeStr} |
| | | and a.is_inside = 'N' |
| | | and a.is_inside = 'N' and a.status = 2 |
| | | <if test="record.description!=null and record.description!=''"> |
| | | and (a.member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids))) |
| | | </if> |