pda 搜索上架任务的条件搜索添加采购单

This commit is contained in:
zhangke 2025-09-26 11:51:04 +08:00
parent c5ecfd8409
commit e2b5bb6778
2 changed files with 12 additions and 2 deletions

View File

@ -7,7 +7,12 @@
from wms_po_receipt
where is_completed=false and source_type=0
<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>
order by id desc
</select>

View File

@ -11,7 +11,12 @@
from wms_qc_receive
where is_completed !=2 and is_check = true and source_type=0
<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>
order by create_time desc
</select>