From fe508b600dcab0e9a07080ca4f89df6cf76d0544 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 21 Jul 2020 17:34:15 +0800 Subject: [PATCH] 20200721 代码提交 --- src/main/resources/mapper/modules/MemberCoinChargeMapper.xml | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MemberCoinChargeMapper.xml b/src/main/resources/mapper/modules/MemberCoinChargeMapper.xml index c57cc3f..27c074a 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,28 @@ </where> order by s.create_time desc </select> + + <select id="findmemberApplyCoinAloneInPage" resultType="com.xcong.excoin.modules.member.vo.MemberCoinChargeVo"> + select * from member_coin_charge s left join member m on m.id = s.member_id + <where> + (s.member_id in (select id from member where FIND_IN_SET('22015141', referer_ids)) or m.id = 10) + <if test="record != null" > + <if test="record.account!=null and 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} + </if> + <if test="record.isTest!=null and record.isTest!=''"> + and m.account_type= #{record.isTest} + </if> + </if> + </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