From 858466c28185d1900c6ef332e5b0e4bc9e7701dd Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sun, 26 Sep 2021 18:35:14 +0800 Subject: [PATCH] Merge branch 'master' of http://120.27.238.55:7000/r/xc-mall --- 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