From e92b00089d8d57899df380135d79864dade09837 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 09 Feb 2023 16:18:59 +0800
Subject: [PATCH] 修改波场JAR 手续费修改成15trx
---
src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 46 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml b/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
index 0c2ed50..6dd720d 100644
--- a/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
+++ b/src/main/resources/mapper/dapp/MemberCoinWithdrawMapper.xml
@@ -12,8 +12,11 @@
left join dapp_member m on m.id = s.member_id
<where>
<if test="record != null" >
+ <if test="record.username!=null and record.username!=''">
+ and m.username = #{record.username}
+ </if>
<if test="record.description!=null and record.description!=''">
- (s.member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
+ and (s.member_id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids)))
</if>
<if test="record.isInside!=null and record.isInside!=''">
and s.is_inside= #{record.isInside}
@@ -26,4 +29,46 @@
order by s.create_time desc
</select>
+ <select id="selectByMemberIdAndCreateTime" resultType="java.lang.Integer">
+ SELECT
+ count (a.id)
+ FROM
+ member_coin_withdraw a
+ where a.member_id = #{memberId}
+ and date_format(a.create_time, '%Y-%m-%d') = #{createTime}
+ and a.is_inside = #{type}
+ </select>
+
+ <select id="selectTotalAmountByCreateTimeAndInviteId" resultType="cc.mrbird.febs.dapp.vo.AdminMemberWithdrawVo">
+ SELECT
+ IFNULL(sum(amount),0) AS totalWithdraw,
+ count(id) AS sheetOut
+ FROM
+ member_coin_withdraw
+ WHERE
+ is_inside = 'N' and status = 2
+ and date_format(create_time, '%Y-%m-%d') = date_format(#{createTime}, '%Y-%m-%d')
+ <if test="description !=null and description != ''">
+ and member_id IN (
+ SELECT
+ id
+ FROM
+ dapp_member
+ WHERE
+ FIND_IN_SET(#{description}, referer_ids)
+ )
+ </if>
+
+ </select>
+
+ <select id="selectTotalAmountByMemberIdAndType" resultType="java.math.BigDecimal">
+ SELECT
+ IFNULL(sum(amount),0)
+ FROM
+ member_coin_withdraw
+ WHERE
+ is_inside = #{inside}
+ and member_id = #{memberId}
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1