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})