From 3cc201617bbf36769457306d13dcf463808d328c Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 23 Dec 2022 14:39:50 +0800
Subject: [PATCH] 20221221
---
src/main/resources/mapper/modules/MallMemberMapper.xml | 6 +++---
src/main/resources/mapper/modules/MallOrderInfoMapper.xml | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml
index 261280f..de1dd5f 100644
--- a/src/main/resources/mapper/modules/MallMemberMapper.xml
+++ b/src/main/resources/mapper/modules/MallMemberMapper.xml
@@ -84,9 +84,9 @@
from mall_order_info e
inner join mall_member b on e.member_id=b.ID
inner join mall_order_item c on e.id = c.order_id -- and c.is_normal=2
- where e.status <![CDATA[>= ]]> 4 and (b.invite_id=a.invite_id or b.referrer_id=a.invite_id)) amount,
+ where e.status = 4 and (b.invite_id=a.invite_id or b.referrer_id=a.invite_id)) amount,
(select count(1) from mall_order_info b
- inner join mall_member e on e.id=b.member_id and b.status <![CDATA[>= ]]> 4
+ inner join mall_member e on e.id=b.member_id and b.status = 4
where find_in_set(a.invite_id, e.referrer_ids)) orderCnt,
(select count(1) from mall_member x where find_in_set(a.invite_id, x.referrer_ids)) cnt
from mall_member a
@@ -357,7 +357,7 @@
from mall_order_info a
inner join mall_member b on a.member_id=b.ID
where 1=1
- and a.status <![CDATA[>= ]]> 4
+ and a.status = 4
<if test="type == 1">
and b.invite_id=#{inviteId}
</if>
diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
index 9778498..decccd9 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 <![CDATA[>= ]]> 4
+ where member_id=#{memberId} and status = 4
</select>
<select id="selectTotalAmountForDate" resultType="java.math.BigDecimal">
--
Gitblit v1.9.1