From 1bf99630317f9bcfe3fee4533cc36d90aae192c1 Mon Sep 17 00:00:00 2001
From: chenhao <852066789@qq.com>
Date: Fri, 6 Jun 2025 09:25:45 +0800
Subject: [PATCH] =?UTF-8?q?fix(sip):=20=E4=BF=AE=E5=A4=8D=E4=BA=A7?=
=?UTF-8?q?=E5=93=81=E7=B1=BB=E5=9E=8B=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 将类型查询条件从直接等于改为使用 find_in_set 函数
- 这样可以支持多对多的类型查询,提高查询灵活性和准确性
---
.../src/main/resources/mapper/system/ProductInfoMapper.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
index 69e64cda..c7a8c5ba 100644
--- a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
+++ b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and product_code = #{productCode}
and product_name like concat('%', #{productName}, '%')
and model = #{model}
- and type = #{type}
+ and find_in_set(type , #{type})