From a3daea7a022be8fde35b8c9af8aca7608f77624f Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 05 Jan 2023 15:22:05 +0800 Subject: [PATCH] 20221227 ε εΌε½ι --- src/main/resources/mapper/modules/MallOrderInfoMapper.xml | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml index 806a69b..db95fed 100644 --- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml +++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml @@ -243,7 +243,7 @@ <select id="selectTotalAmount" resultType="java.math.BigDecimal"> select IFNULL(sum(IFNULL(amount,0)),0) from mall_order_info - where member_id=#{memberId} and status in (2, 3, 4) and order_type=1 + where member_id=#{memberId} and status = 4 </select> <select id="selectTotalAmountForDate" resultType="java.math.BigDecimal"> @@ -323,7 +323,7 @@ count(a.id) from mall_order_info a where - a.status <![CDATA[>= ]]> 4 + a.status = 4 and a.member_id = #{memberId} <if test="createdTime != null"> and date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime} @@ -336,7 +336,7 @@ ifnull(sum(a.subsidy_amount),0) from mall_order_info a where - a.status <![CDATA[>= ]]> 4 + a.status = 4 and a.member_id = #{memberId} <if test="createdTime != null"> and date_format(a.CREATED_TIME, '%Y-%m-%d') = #{createdTime} -- Gitblit v1.9.1