From cb5d35ab1b7d235962f2690cb58b210ed81c4232 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 10 Feb 2023 12:43:37 +0800
Subject: [PATCH] 代理状态

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

diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index faa756b..4d6688c 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -72,6 +72,10 @@
                 a.present_price,
                 a.score,
                 a.is_hot,
+                a.carriage_type,
+                a.carriage_amount,
+                a.carriage_rule_id,
+                a.goods_weight,
                 min(b.id) skuId,
                 min(b.present_price) price,
                 sum(b.stock) stock,
@@ -289,6 +293,10 @@
         a.present_price,
         a.score,
         a.is_hot,
+        a.carriage_type,
+        a.carriage_amount,
+        a.carriage_rule_id,
+        a.goods_weight,
         min(b.id) skuId,
         min(b.present_price) price,
         sum(b.stock) stock,
@@ -341,4 +349,15 @@
         </if>
     </select>
 
+    <select id="selectMallGoodsListQueryByRuleId" resultType="cc.mrbird.febs.mall.entity.MallGoods">
+        select a.goods_name from mall_goods a where a.carriage_rule_id = #{id}
+    </select>
+
+    <select id="selectMallGoodsListQueryByRuleIdAndIsSale" resultType="cc.mrbird.febs.mall.entity.MallGoods">
+        select a.goods_name
+        from mall_goods a
+        where a.carriage_rule_id = #{id}
+            and a.is_sale = #{isSale}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1