| | |
| | | group by a.create_time,a.phone, a.email |
| | | order by a.create_time desc |
| | | </select> |
| | | |
| | | <select id="selectMemberAssetsList" resultType="com.xcong.excoin.modules.agent.entity.MemberEntity"> |
| | | select |
| | | CONCAT(e.first_name, e.second_name) account, |
| | | a.phone, |
| | | a.email, |
| | | a.invite_id, |
| | | a.referer_id, |
| | | b.total_balance contractTotal, |
| | | c.total_balance coinTotal, |
| | | d.total_balance agentTotal |
| | | from kss_framework.member a |
| | | left join member_wallet_contract b on a.id=b.member_id |
| | | left join member_wallet_coin c on a.id=c.member_id and c.wallet_code='USDT' |
| | | left join member_wallet_agent d on a.id=d.member_id |
| | | left join member_authentication e on a.id=e.member_id |
| | | where find_in_set(#{record.refererId}, a.referer_ids) |
| | | order by a.create_time desc |
| | | </select> |
| | | </mapper> |