fix bug 6239
This commit is contained in:
parent
b681da09bf
commit
f073dbfee7
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue