From 408e00d41f1f2dbbd248c4bec3c7937e0eeb48e9 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 10 Nov 2022 17:51:54 +0800
Subject: [PATCH] 20221021
---
src/main/resources/mapper/dapp/DappMemberDao.xml | 40 ++++++++++++++++++++++++++++++++--------
1 files changed, 32 insertions(+), 8 deletions(-)
diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml
index 6ce2b90..7f74145 100644
--- a/src/main/resources/mapper/dapp/DappMemberDao.xml
+++ b/src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -14,22 +14,34 @@
</select>
<select id="selectInPage" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity">
- select * from dapp_member
+ select a.*,
+ b.total_amount totalAmount,
+ b.frozen_amount frozenAmount,
+ b.available_amount availableAmount
+ from dapp_member a
+ left join dapp_wallet_coin b on a.id = b.member_id
<where>
- <if test="record.currentUser != null">
- and referer_id = (select invite_id from dapp_user_member_relate where user_id=#{record.currentUser})
+<!-- <if test="record.currentUser != null">-->
+<!-- and referer_id = (select invite_id from dapp_user_member_relate where user_id=#{record.currentUser})-->
+<!-- </if>-->
+
+ <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.accountStatus != null">
- and account_status = #{record.accountStatus}
+ and a.account_status = #{record.accountStatus}
</if>
<if test="record.changeAble != null">
- and change_able = #{record.changeAble}
+ and a.change_able = #{record.changeAble}
</if>
<if test="record.withdrawAble != null">
- and withdraw_able = #{record.withdrawAble}
+ and a.withdraw_able = #{record.withdrawAble}
</if>
<if test="record.inviteId != null and record.inviteId != ''">
- and invite_id = #{record.inviteId}
+ and a.invite_id = #{record.inviteId}
+ </if>
+ <if test="record.username != null and record.username != ''">
+ and a.username like CONCAT('%',#{record.username},'%')
</if>
</where>
order by create_time desc
@@ -226,8 +238,20 @@
inner join dapp_member b on a.member_id = b.id
where
a.total_amount <![CDATA[ >= ]]> 51
- and b.referer_id = #{inviteId}
+ and find_in_set(#{inviteId}, b.referer_ids)
and b.identity = #{identity}
</select>
+
+ <select id="getAppVersionListInPage" resultType="cc.mrbird.febs.dapp.entity.AppVersion">
+ select a.* from app_version a
+ </select>
+
+ <select id="getChargeListInPage" resultType="cc.mrbird.febs.dapp.entity.MemberCoinChargeEntity">
+ select
+ a.*,b.username username
+ from member_coin_charge a
+ inner join dapp_member b on b.id = a.member_id
+ order by create_time desc
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1