From d26736697059b67b84f3a5acc14099cb33afa1e0 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Sun, 26 Sep 2021 19:00:44 +0800
Subject: [PATCH] 20210926

---
 src/main/resources/mapper/modules/MallGoodsMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index e8ec726..1ecb522 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -116,8 +116,13 @@
         a.is_sale,
         a.original_price,
         a.present_price,
-        a.is_hot
+        a.is_hot,
+        b.name categaryName,
+        sum(c.sku_volume) skuVolume,
+        sum(c.stock) stock
         from mall_goods a
+        left join mall_goods_category b on b.id = a.category_id
+        left join mall_goods_sku c on c.goods_id = a.id
         <where>
             <if test="record != null">
                 <if test="record.goodsName != null and record.goodsName != ''">

--
Gitblit v1.9.1