From d20a8aeeff847df259cb78fab8cb65c4d0630491 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 17 Aug 2023 15:16:06 +0800
Subject: [PATCH] 后台修改
---
src/main/resources/mapper/dapp/MallGoodsMapper.xml | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/dapp/MallGoodsMapper.xml b/src/main/resources/mapper/dapp/MallGoodsMapper.xml
index a14017c..aed5b19 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 != ''">
@@ -85,4 +87,9 @@
select * from mall_goods a where a.category_id = #{categaryId}
</select>
+ <select id="getMallOrderInfoById" resultType="cc.mrbird.febs.dapp.vo.AdminMallOrderVo">
+ select b.* from mall_address_info b
+ where b.id = (select a.address_id from mall_order_info a where a.id = #{id})
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1