From 1f2aca9f117c2a00d7ef7a705f8dd1128cd021c0 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 22 Dec 2022 17:58:42 +0800 Subject: [PATCH] 20221221 --- src/main/resources/mapper/modules/MallMoneyFlowMapper.xml | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml index c2827e7..fbb78fa 100644 --- a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml +++ b/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> \ No newline at end of file -- Gitblit v1.9.1