From 1c23bfe752fea2e815daa4bdd93859dee9e5b87c Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 22 Apr 2021 18:44:50 +0800 Subject: [PATCH] 20210422 --- src/main/resources/mapper/modules/MemberMapper.xml | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/modules/MemberMapper.xml b/src/main/resources/mapper/modules/MemberMapper.xml index 30b4637..6a6c7e1 100644 --- a/src/main/resources/mapper/modules/MemberMapper.xml +++ b/src/main/resources/mapper/modules/MemberMapper.xml @@ -6,13 +6,15 @@ <select id="selectMemberListInPage" resultType="com.xcong.excoin.modules.agent.entity.MemberEntity"> select a.*, + CONCAT(e.first_name, e.second_name) account, 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 (select member_id, sum(total_balance) total_balance from member_wallet_contract group by member_id) 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> <if test="record != null"> <if test="record.inviteId !=null and record.inviteId!=''"> @@ -90,7 +92,7 @@ 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 (select member_id, sum(total_balance) total_balance from member_wallet_contract group by member_id) 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 -- Gitblit v1.9.1