来料检验物料号模糊查询

master
陈恒杰 4 months ago
parent 5fad84018d
commit 6495ff8292

@ -61,9 +61,11 @@
from qc_check_task qct from qc_check_task qct
<where> <where>
<if test="checkNo != null and checkNo != ''">and qct.check_no = #{checkNo}</if> <if test="checkNo != null and checkNo != ''">and qct.check_no = #{checkNo}</if>
<if test="incomeBatchNo != null and incomeBatchNo != ''">and qct.income_batch_no = #{incomeBatchNo}</if> <if test="incomeBatchNo != null and incomeBatchNo != ''">and qct.income_batch_no like concat('%',
#{incomeBatchNo}, '%')</if>
<if test="orderNo != null and orderNo != ''">and qct.order_no = #{orderNo}</if> <if test="orderNo != null and orderNo != ''">and qct.order_no = #{orderNo}</if>
<if test="materialCode != null and materialCode != ''">and qct.material_code = #{materialCode}</if> <if test="materialCode != null and materialCode != ''">and qct.material_code like concat('%',
#{materialCode}, '%')</if>
<if test="materialName != null and materialName != ''">and qct.material_name like concat('%', <if test="materialName != null and materialName != ''">and qct.material_name like concat('%',
#{materialName}, '%') #{materialName}, '%')
</if> </if>

Loading…
Cancel
Save