From 32f2d11dbeceff106dcbea2dcd73a2268d6b92c1 Mon Sep 17 00:00:00 2001 From: chenhao <852066789@qq.com> Date: Fri, 6 Jun 2025 09:28:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(product):=20=E6=A8=A1=E7=B3=8A=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BA=A7=E5=93=81=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将产品编码的精确查询改为模糊查询 - 提高了产品信息查询的灵活性和准确性 --- .../src/main/resources/mapper/system/ProductInfoMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml index c7a8c5ba..218d4e1d 100644 --- a/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml +++ b/ruoyi-sip/src/main/resources/mapper/system/ProductInfoMapper.xml @@ -27,9 +27,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and status = 0 - and product_code = #{productCode} + and product_code like concat('%', #{productCode}, '%') and product_name like concat('%', #{productName}, '%') - and model = #{model} + and model like concat('%', #{model}, '%') and find_in_set(type , #{type})