fix(sip): 修复产品类型查询功能

- 将类型查询条件从直接等于改为使用 find_in_set 函数
- 这样可以支持多对多的类型查询,提高查询灵活性和准确性
master
chenhao 2025-06-06 09:25:45 +08:00
parent a9a7dca53c
commit 1bf9963031
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
<if test="model != null and model != ''"> and model = #{model}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="type != null and type != ''"> and find_in_set(type , #{type})</if>
</where>
</select>