bug-1506 PDA-卸车清点需要支持支持车牌号模糊搜索
This commit is contained in:
parent
abfd82b223
commit
f1b517787a
|
|
@ -15,7 +15,7 @@
|
||||||
LEFT JOIN dictionary_item di ON c."type"=di."id"
|
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_item sdi ON sdi.packaging_code_id=c."id"
|
||||||
INNER JOIN wms_shipment_delivery sd ON sdi.delivery_id=sd."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>
|
||||||
|
|
||||||
<select id="getBoxByDeliveryId" resultType="com.nflg.wms.common.pojo.vo.ShipmentPackagingCodeVO">
|
<select id="getBoxByDeliveryId" resultType="com.nflg.wms.common.pojo.vo.ShipmentPackagingCodeVO">
|
||||||
|
|
|
||||||
|
|
@ -35,28 +35,28 @@
|
||||||
AND di.create_time <= #{qo.endDate}
|
AND di.create_time <= #{qo.endDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="qo.deliveryNo != null and qo.deliveryNo != ''">
|
<if test="qo.deliveryNo != null and qo.deliveryNo != ''">
|
||||||
and d.no like concat('%', #{qo.deliveryNo}, '%')
|
and d.no ilike concat('%', #{qo.deliveryNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="qo.contractNo != null and qo.contractNo != ''">
|
<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>
|
||||||
<if test="qo.soNo != null and qo.soNo != ''">
|
<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>
|
||||||
<if test="qo.materialDrawingNo != null and qo.materialDrawingNo != ''">
|
<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>
|
||||||
<if test="qo.materialNo != null and qo.materialNo != ''">
|
<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>
|
||||||
<if test="qo.deviceNo != null and qo.deviceNo != ''">
|
<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>
|
||||||
<if test="qo.customerName != null and qo.customerName != ''">
|
<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>
|
||||||
<if test="qo.plateNumber != null and qo.plateNumber != ''">
|
<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>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue