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