xiaoyong931011
2023-08-14 3ff54cacf5bbb82fdb3449a268d19f1c7dce5f97
src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -11,9 +11,8 @@
        select
            a.*
        from mall_money_flow a
            left join mall_member b on a.member_id = b.id
        <where>
            a.status != null
            a.status is not NULL
            <if test="record.inOrOut == 3">
                and a.amount > 0
            </if>
@@ -140,6 +139,11 @@
        where a.order_no = #{rechargeNo} and a.member_id = #{memberId}
    </select>
    <select id="selectOneByOrderNoAndMemberIdAndRtMemberId" resultType="cc.mrbird.febs.mall.entity.MallMoneyFlow">
        select a.* from mall_money_flow a
        where a.order_no = #{rechargeNo} and a.member_id = #{memberId} and a.rt_member_id = @{rtMemberId}
    </select>
    <select id="selectAmountByFlowtypeAndType" resultType="java.math.BigDecimal">
        select ifnull(sum(a.amount),0) from mall_money_flow a
        <where>