fix bug 6239

This commit is contained in:
sxu 2025-06-10 21:10:07 +08:00
parent b681da09bf
commit f073dbfee7
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="areaId != null "> and sm.area_id = #{areaId}</if>
<if test="materialName != null and materialName != ''"> and sm.material_name like concat('%', #{materialName}, '%')</if>
<if test="materialCode != null and materialCode != ''"> and sm.material_code = #{materialCode}</if>
<if test="materialCode != null and materialCode != ''"> and sm.material_code like concat('%', #{materialCode}, '%')</if>
<if test="imgUrl != null and imgUrl != ''"> and sm.img_url = #{imgUrl}</if>
<if test="materialTypeIds != null and materialTypeIds.length > 0">
and sm.material_type_id in
@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item}
</foreach>
</if>
<if test="barCode != null and barCode != ''"> and sm.bar_code = #{barCode}</if>
<if test="barCode != null and barCode != ''"> and sm.bar_code like concat('%', #{barCode}, '%')</if>
<if test="unitId != null "> and sm.unit_id = #{unitId}</if>
<if test="salePrice != null "> and sm.sale_price = #{salePrice}</if>
<if test="unitPrice != null "> and sm.unit_price = #{unitPrice}</if>