xiaoyong931011
2022-12-22 1f2aca9f117c2a00d7ef7a705f8dd1128cd021c0
src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -146,7 +146,21 @@
    </select>
    <select id="selectOrderMoneyFlowInPage" resultType="cc.mrbird.febs.mall.vo.AdminMallMoneyFlowVo">
        select * from mall_money_flow a where a.order_no = #{record.orderNo}
        select
               a.*,
               b.name memberName
        from mall_money_flow a
        inner join mall_member b on b.id = a.rt_member_id
        where a.order_no = #{record.orderNo}
        order by a.CREATED_TIME desc
    </select>
    <select id="selectSumAmountByStatusAndMemberId" resultType="java.math.BigDecimal">
        select
               ifnull(sum(a.amount),0)
        from mall_member_withdraw a
        where
            a.member_id = #{memberId}
          and a.status = #{status}
    </select>
</mapper>