From 03538b9e2ee60e685d129432afc8a5cc2e2b79f7 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 18 Aug 2022 17:41:02 +0800
Subject: [PATCH] 20220810

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

diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index b7498ce..6da2196 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -72,6 +72,7 @@
                 a.present_price,
                 a.score,
                 a.is_hot,
+                min(b.id) skuId,
                 min(b.present_price) price,
                 sum(b.stock) stock,
                 sum(b.sku_volume) saleVolume
@@ -82,7 +83,7 @@
                 a.is_sale=1
                 <if test="record != null">
                     <if test="record.isHot != null and record.isHot != ''">
-                        and a.is_hot = 1
+                        and a.is_hot = #{record.isHot}
                     </if>
                     <if test="record.isNormal != null and record.isNormal != ''">
                         and a.is_normal = #{record.isNormal}

--
Gitblit v1.9.1