From eda98a749ecc0a0385e158bc9d9ac1f3f98280bf Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sun, 12 Jul 2020 17:03:37 +0800
Subject: [PATCH] 20200712 代码提交
---
src/main/resources/mapper/modules/MemberCoinChargeMapper.xml | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/modules/MemberCoinChargeMapper.xml b/src/main/resources/mapper/modules/MemberCoinChargeMapper.xml
index c57cc3f..c5a078e 100644
--- a/src/main/resources/mapper/modules/MemberCoinChargeMapper.xml
+++ b/src/main/resources/mapper/modules/MemberCoinChargeMapper.xml
@@ -7,7 +7,7 @@
<where>
<if test="record != null" >
<if test="record.account!=null and record.account!=''">
- and (m.phone = #{record.account} or m.email = #{record.account} or s.member_id=#{record.account})
+ and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})
</if>
<if test="record.address!=null and record.address!=''">
and s.address=#{record.address}
@@ -16,5 +16,9 @@
</where>
order by s.create_time desc
</select>
+
+ <select id="selectCBByMemberId" resultType="java.lang.String">
+ select IFNULL(sum(amount),'0') from member_coin_charge where member_id = #{memberId}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1