From 0c19b95cac1bed28ea09d6edbc8d14f4d9cdd474 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 16 Aug 2023 16:20:34 +0800
Subject: [PATCH] 后台修改

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

diff --git a/src/main/resources/mapper/dapp/MallGoodsMapper.xml b/src/main/resources/mapper/dapp/MallGoodsMapper.xml
index a735f84..6f7b79d 100644
--- a/src/main/resources/mapper/dapp/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/dapp/MallGoodsMapper.xml
@@ -4,8 +4,10 @@
 
     <select id="selectMallGoodsInPage" resultType="cc.mrbird.febs.dapp.entity.MallGoods">
         select
-        a.*
+        a.*,
+        b.name categoryName
         from mall_goods a
+        left join mall_goods_category b on a.category_id = b.id
         <where>
             <if test="record != null">
                 <if test="record.goodsName != null and record.goodsName != ''">
@@ -81,4 +83,8 @@
         order by a.create_time desc
     </select>
 
+    <select id="selectMallGoodsByCategaryId" resultType="cc.mrbird.febs.dapp.entity.MallGoods">
+        select * from mall_goods a where a.category_id = #{categaryId}
+    </select>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1