From c07eb0467fd3f3ee8321721acc5977f0f84e38c2 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期四, 16 一月 2025 16:27:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
pms-parent/pms-global/src/main/resources/mapper/PltProductMapper.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pms-parent/pms-global/src/main/resources/mapper/PltProductMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PltProductMapper.xml
index 27effe0..b00a373 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PltProductMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PltProductMapper.xml
@@ -162,7 +162,7 @@
where p.deleted!=1
<trim prefix="and " suffixOverrides="and">
<if test="type != null and type != ''">
- p.type = #{type,jdbcType=VARCHAR} and
+ p.type like concat('%', #{type}, '%') and
</if>
</trim>
order by id desc
@@ -179,7 +179,7 @@
where p.deleted!=1
<trim prefix="and " suffixOverrides="and">
<if test="type != null and type != ''">
- p.type = #{type,jdbcType=VARCHAR} and
+ p.type like concat('%', #{type}, '%') and
</if>
</trim>
</select>
--
Gitblit v1.8.0