From e70b1f09057257d7d87626442bbd54d22ca2e4c3 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 20 May 2024 16:57:28 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/modules/MallOrderInfoMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
index 9e7f9e6..d2f0556 100644
--- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
+++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -458,12 +458,12 @@
         select IFNULL(sum(IFNULL(a.amount,0)),0) from mall_order_info a
         inner join mall_member b on a.member_id=b.ID
         <where>
-            a.status in (2,3,4)
+            a.status = 4
             <if test="type == 1">
                 and b.invite_id=#{inviteId}
             </if>
             <if test="type == 2">
-                and FIND_IN_SET(#{inviteId},b.referrer_ids)
+                and b.referrer_id=#{inviteId}
             </if>
         </where>
     </select>

--
Gitblit v1.9.1