物料编码模糊查询

This commit is contained in:
秦鸿展
2026-02-10 14:43:33 +08:00
parent 543fca9d38
commit 507cbf0f1e
@@ -99,11 +99,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and shipper_name like concat('%', #{shipperName}, '%')
</if>
<if test="materialCode != null and materialCode != ''">
and material_code = #{materialCode}
and material_code like concat('%', #{materialCode}, '%')
</if>
<if test="materialName != null and materialName != ''">
and material_name like concat('%', #{materialName}, '%')
</if>
<if test="unitName != null and unitName != ''">
and unit_name like concat('%', #{unitName}, '%')
</if>
<if test="barCode != null and barCode != ''">
and bar_code like concat('%',#{barCode},'%')
</if>