From 1bada3da32aa8b29509b7357e5adfe816ac17c72 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 16 Jul 2021 10:29:33 +0800
Subject: [PATCH] fix
---
gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml b/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
index 690fb84..13fd2f0 100644
--- a/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
+++ b/gc-shop/src/main/resources/mapper/shop/ScoreGoodsCategoryMapper.xml
@@ -15,6 +15,7 @@
select a.id id, a.name name, b.id c_id, b.name c_name
from xzx_score_goods_category a
left join xzx_score_goods_category b on a.id=b.parent_id
+ where a.parent_id=0
</select>
<select id="queryGoodsCategoryList" resultType="com.xzx.gc.shop.vo.QueryGoodsCategoryListVo">
@@ -25,7 +26,7 @@
xzx_score_goods_category a
WHERE 1 = 1
<if test="record.name != null and record.name != ''">
- and a.name=#{record.name}
+ and a.name like concat('%',#{record.name},'%')
</if>
<if test="record.categoryIden != null and record.categoryIden != ''">
and a.category_iden=#{record.categoryIden}
--
Gitblit v1.9.1