From e2b5bb6778ff57da65f3ac9f7b2f2da964b53c3f Mon Sep 17 00:00:00 2001 From: zhangke Date: Fri, 26 Sep 2025 11:51:04 +0800 Subject: [PATCH] =?UTF-8?q?pda=20=E6=90=9C=E7=B4=A2=E4=B8=8A=E6=9E=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=9A=84=E6=9D=A1=E4=BB=B6=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=87=87=E8=B4=AD=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WmsPoReceiptItemMapper.xml | 7 ++++++- .../src/main/resources/mapper/WmsQcReceiveMapper.xml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/nflg-wms-repository/src/main/resources/mapper/WmsPoReceiptItemMapper.xml b/nflg-wms-repository/src/main/resources/mapper/WmsPoReceiptItemMapper.xml index a3eda018..10c73ed8 100644 --- a/nflg-wms-repository/src/main/resources/mapper/WmsPoReceiptItemMapper.xml +++ b/nflg-wms-repository/src/main/resources/mapper/WmsPoReceiptItemMapper.xml @@ -7,7 +7,12 @@ from wms_po_receipt where is_completed=false and source_type=0 - 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}, '%')) + ) order by id desc diff --git a/nflg-wms-repository/src/main/resources/mapper/WmsQcReceiveMapper.xml b/nflg-wms-repository/src/main/resources/mapper/WmsQcReceiveMapper.xml index 750ee6b8..f1d66e73 100644 --- a/nflg-wms-repository/src/main/resources/mapper/WmsQcReceiveMapper.xml +++ b/nflg-wms-repository/src/main/resources/mapper/WmsQcReceiveMapper.xml @@ -11,7 +11,12 @@ from wms_qc_receive where is_completed !=2 and is_check = true and source_type=0 - 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}, '%')) + ) order by create_time desc