From 969759b44baf414778aa68f1f3af5cd79d9f7e9b Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 01 Aug 2022 10:58:08 +0800 Subject: [PATCH] 20220727 保存代码 --- src/main/resources/mapper/modules/MallGoodsMapper.xml | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml index 66ce2c7..0d125cd 100644 --- a/src/main/resources/mapper/modules/MallGoodsMapper.xml +++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml @@ -73,6 +73,7 @@ a.score, a.is_hot, min(b.present_price) price, + sum(b.stock) stock, sum(b.sku_volume) saleVolume from mall_goods a left join mall_goods_sku b on a.id=b.goods_id -- Gitblit v1.9.1