From f681a6a7852eb7c868ea539155861729c3e99da1 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 19 May 2022 17:59:07 +0800
Subject: [PATCH] finish return bonus

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

diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
index f85e7e5..6707604 100644
--- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
+++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -237,7 +237,7 @@
         select IFNULL(sum(IFNULL(b.amount,0) - IFNULL(b.cost_price*b.cnt, 0)),0)
         from mall_order_info a
         inner join mall_order_item b on a.id=b.order_id
-        where status = 4
+        where a.status in (2, 3, 4) and a.is_normal = 2 and a.order_type=1
         <if test="member != null">
             and member_id=#{memberId}
         </if>

--
Gitblit v1.9.1