From 220fc7727ed464364d5852036a5e44ff80fab957 Mon Sep 17 00:00:00 2001 From: 10002617 Date: Wed, 6 May 2026 17:42:58 +0800 Subject: [PATCH] =?UTF-8?q?1475=20=E5=8F=91=E8=B4=A7=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=89=AB=E7=A0=81=E8=A3=85=E7=AE=B1=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WmsShipmentMaterialCodeItemQrMapper.xml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/nflg-wms-repository/src/main/resources/mapper/WmsShipmentMaterialCodeItemQrMapper.xml b/nflg-wms-repository/src/main/resources/mapper/WmsShipmentMaterialCodeItemQrMapper.xml index c17f5cea..ad405f66 100644 --- a/nflg-wms-repository/src/main/resources/mapper/WmsShipmentMaterialCodeItemQrMapper.xml +++ b/nflg-wms-repository/src/main/resources/mapper/WmsShipmentMaterialCodeItemQrMapper.xml @@ -7,20 +7,11 @@ FROM wms_shipment_material_code_item_qr qr INNER JOIN wms_shipment_material_code_item it ON qr.item_id=it."id" INNER JOIN wms_shipment_material_code mc ON mc."id"=it.material_code_id - - - and it.material_no=#{materialNo} - - - and mc.device_no=#{deviceNo} - - - and it.production_order_number=#{productionOrderNumber} - - - and it.status=#{status} - - + where it.material_no=#{materialNo} + and mc.device_no=#{deviceNo} + and it.production_order_number=#{productionOrderNumber} + and it.status=#{status} + limit 1