| | |
| | | |
| | | |
| | | <select id="selectMemberListInPage" resultType="com.xcong.excoin.modules.agent.entity.MemberEntity"> |
| | | select * from member |
| | | select |
| | | a.*, |
| | | b.total_balance contractTotal, |
| | | c.available_balance coinTotal, |
| | | d.total_balance agentTotal |
| | | from 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 |
| | | <where> |
| | | <if test="record != null"> |
| | | <if test="record.inviteId !=null and record.inviteId!=''"> |
| | |
| | | a.invite_id, |
| | | a.referer_id, |
| | | b.total_balance contractTotal, |
| | | c.total_balance coinTotal, |
| | | c.available_balance coinTotal, |
| | | d.total_balance agentTotal |
| | | from member a |
| | | left join member_wallet_contract b on a.id=b.member_id |