pda 搜索上架任务的条件搜索添加采购单
This commit is contained in:
parent
c5ecfd8409
commit
e2b5bb6778
|
|
@ -7,7 +7,12 @@
|
||||||
from wms_po_receipt
|
from wms_po_receipt
|
||||||
where is_completed=false and source_type=0
|
where is_completed=false and source_type=0
|
||||||
<if test="orederNo !=null and orederNo !='' ">
|
<if test="orederNo !=null and orederNo !='' ">
|
||||||
and ( order_no ilike #{orederNo} or in_num ilike #{orederNo} )
|
and (
|
||||||
|
order_no like concat('%', #{orederNo}, '%')
|
||||||
|
or in_num like concat('%', #{orederNo}, '%')
|
||||||
|
or exists (select 1 from wms_po_receipt_item where wms_po_receipt.id=wms_po_receipt_item.receive_id
|
||||||
|
and wms_po_receipt_item.po_num like concat('%', #{orederNo}, '%'))
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
order by id desc
|
order by id desc
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,12 @@
|
||||||
from wms_qc_receive
|
from wms_qc_receive
|
||||||
where is_completed !=2 and is_check = true and source_type=0
|
where is_completed !=2 and is_check = true and source_type=0
|
||||||
<if test="orderNo != null and orderNo != ''">
|
<if test="orderNo != null and orderNo != ''">
|
||||||
and ( in_no ilike concat( '%',#{orderNo},'%') or order_no ilike concat( '%',#{orderNo},'%') )
|
and ( in_no like concat( '%',#{orderNo},'%')
|
||||||
|
or order_no like concat( '%',#{orderNo},'%')
|
||||||
|
or exists (select 1 from wms_qc_receive_item where wms_qc_receive.id=wms_qc_receive_item.receive_id
|
||||||
|
and wms_qc_receive_item.po_num
|
||||||
|
ilike concat('%', #{orderNo}, '%'))
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue