xiaoyong931011
2020-07-16 71d0fae3ac7113f813a73fdbcd76a608fce30e38
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>