From c13cc7349ca2a5ffa8eb1d41c583ceef2647abdb Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 24 Jun 2021 14:57:35 +0800
Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop
---
gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml b/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
index 581a8ec..8c67f58 100644
--- a/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
+++ b/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
@@ -8,16 +8,34 @@
FROM
xzx_score_goods_category a
WHERE 1 = 1
- <if test="name != null and name != ''">
- and a.name=#{name}
+ <if test="record.name != null and record.name != ''">
+ and a.name=#{record.name}
</if>
- <if test="categoryIden != null and categoryIden != ''">
- and a.category_iden=#{categoryIden}
+ <if test="record.categoryIden != null and record.categoryIden != ''">
+ and a.category_iden=#{record.categoryIden}
</if>
- <if test="parentId != null and parentId != ''">
- and a.parent_id=#{parentId}
+ <if test="record.parentId != null and record.parentId != ''">
+ and a.parent_id=#{record.parentId}
</if>
order by a.CREATED_TIME desc
</select>
+ <select id="viewGoodsCategoryOneList" resultType="com.xzx.gc.shop.vo.ViewGoodsCategoryListVo">
+ SELECT
+ *
+ FROM
+ xzx_score_goods_category a
+ WHERE 1 = 1
+ and a.parent_id=#{parentId}
+ </select>
+
+ <select id="viewGoodsCategoryList" resultType="com.xzx.gc.shop.vo.ViewGoodsCategoryListVo">
+ SELECT
+ a.*,
+ (select name from xzx_score_goods_category where a.parent_id = id) parentName
+ FROM
+ xzx_score_goods_category a
+ WHERE 1 = 1
+ </select>
+
</mapper>
--
Gitblit v1.9.1