From aa36fd2b101de29185ece203083f675b19a27a2d Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 17 Jun 2022 17:54:00 +0800 Subject: [PATCH] 20220528 --- src/main/resources/mapper/modules/MallMoneyFlowMapper.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml index 203a726..f22498a 100644 --- a/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml +++ b/src/main/resources/mapper/modules/MallMoneyFlowMapper.xml @@ -109,7 +109,8 @@ </update> <select id="selectProfitByDateAndMemberId" resultType="java.math.BigDecimal"> - select ifnull(sum(a.amount),0) from mall_money_flow a where member_id=#{memberId} and type in (1,2) and date_format(a.CREATED_TIME, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d'); + select ifnull(sum(a.amount),0) from mall_money_flow a + where member_id=#{memberId} and flow_type=4 and date_format(a.CREATED_TIME, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d') and amount > 0 </select> <select id="selectCommissionIncome" resultType="java.math.BigDecimal"> -- Gitblit v1.9.1