xiaoyong931011
2022-12-22 1f2aca9f117c2a00d7ef7a705f8dd1128cd021c0
src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -154,4 +154,13 @@
        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>