bug-1506 PDA-卸车清点需要支持支持车牌号模糊搜索

This commit is contained in:
曹鹏飞 2026-05-23 17:50:20 +08:00
parent abfd82b223
commit f1b517787a
2 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,7 @@
LEFT JOIN dictionary_item di ON c."type"=di."id"
INNER JOIN wms_shipment_delivery_item sdi ON sdi.packaging_code_id=c."id"
INNER JOIN wms_shipment_delivery sd ON sdi.delivery_id=sd."id"
WHERE sd.plate_number=#{plateNumber}
WHERE sd.plate_number ilike CONCAT('%', #{plateNumber}, '%')
</select>
<select id="getBoxByDeliveryId" resultType="com.nflg.wms.common.pojo.vo.ShipmentPackagingCodeVO">

View File

@ -35,28 +35,28 @@
AND di.create_time &lt;= #{qo.endDate}
</if>
<if test="qo.deliveryNo != null and qo.deliveryNo != ''">
and d.no like concat('%', #{qo.deliveryNo}, '%')
and d.no ilike concat('%', #{qo.deliveryNo}, '%')
</if>
<if test="qo.contractNo != null and qo.contractNo != ''">
and d.contract_no like concat('%', #{qo.contractNo}, '%')
and d.contract_no ilike concat('%', #{qo.contractNo}, '%')
</if>
<if test="qo.soNo != null and qo.soNo != ''">
and d.so_no like concat('%', #{qo.soNo}, '%')
and d.so_no ilike concat('%', #{qo.soNo}, '%')
</if>
<if test="qo.materialDrawingNo != null and qo.materialDrawingNo != ''">
and d.material_drawing_no like concat('%', #{qo.materialDrawingNo}, '%')
and d.material_drawing_no ilike concat('%', #{qo.materialDrawingNo}, '%')
</if>
<if test="qo.materialNo != null and qo.materialNo != ''">
and d.material_no like concat('%', #{qo.materialNo}, '%')
and d.material_no ilike concat('%', #{qo.materialNo}, '%')
</if>
<if test="qo.deviceNo != null and qo.deviceNo != ''">
and d.device_no like concat('%', #{qo.deviceNo}, '%')
and d.device_no ilike concat('%', #{qo.deviceNo}, '%')
</if>
<if test="qo.customerName != null and qo.customerName != ''">
and d.customer_name like concat('%', #{qo.customerName}, '%')
and d.customer_name ilike concat('%', #{qo.customerName}, '%')
</if>
<if test="qo.plateNumber != null and qo.plateNumber != ''">
and d.plate_number like concat('%', #{qo.plateNumber}, '%')
and d.plate_number ilike concat('%', #{qo.plateNumber}, '%')
</if>
</where>
</select>