From 9ee245f8fe1e4cb13a99218bbced882ba9a95ab3 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 30 May 2024 15:46:23 +0800
Subject: [PATCH] 图片上传

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

diff --git a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
index 9e7f9e6..5a58e70 100644
--- a/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
+++ b/src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -438,7 +438,7 @@
 
     <select id="getGoodsStatisticsInPage" resultType="cc.mrbird.febs.mall.vo.AdminGoodsStatisticsVo">
         select
-            goods_name goodsName,
+            CONCAT(goods_name, '---', sku_name) goodsName,
             SUM(cnt) goodsCnt
         from mall_order_item
         <where>
@@ -450,7 +450,7 @@
                     </foreach>
             </if>
         </where>
-            GROUP BY goods_id
+            GROUP BY goods_id,goods_name,sku_name
             ORDER BY goods_id desc
     </select>
 
@@ -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