diff --git a/src/main/resources/mapper/inboundNotification/InboundNotificationHeadMapper.xml b/src/main/resources/mapper/inboundNotification/InboundNotificationHeadMapper.xml
index 7f87459..9347c06 100644
--- a/src/main/resources/mapper/inboundNotification/InboundNotificationHeadMapper.xml
+++ b/src/main/resources/mapper/inboundNotification/InboundNotificationHeadMapper.xml
@@ -23,7 +23,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR d.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)
diff --git a/src/main/resources/mapper/otherInbound/OtherInboundMapper.xml b/src/main/resources/mapper/otherInbound/OtherInboundMapper.xml
index d019d91..40e72b4 100644
--- a/src/main/resources/mapper/otherInbound/OtherInboundMapper.xml
+++ b/src/main/resources/mapper/otherInbound/OtherInboundMapper.xml
@@ -25,7 +25,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR d.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)
diff --git a/src/main/resources/mapper/otherOutbound/OtherOutboundMapper.xml b/src/main/resources/mapper/otherOutbound/OtherOutboundMapper.xml
index cafd16b..2cf7216 100644
--- a/src/main/resources/mapper/otherOutbound/OtherOutboundMapper.xml
+++ b/src/main/resources/mapper/otherOutbound/OtherOutboundMapper.xml
@@ -25,7 +25,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR d.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)
diff --git a/src/main/resources/mapper/productionInbound/ProductionInboundMapper.xml b/src/main/resources/mapper/productionInbound/ProductionInboundMapper.xml
index 4868c1a..cfcb426 100644
--- a/src/main/resources/mapper/productionInbound/ProductionInboundMapper.xml
+++ b/src/main/resources/mapper/productionInbound/ProductionInboundMapper.xml
@@ -24,8 +24,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR d.part_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR D.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)
diff --git a/src/main/resources/mapper/purchaseReturn/PurchaseReturnMapper.xml b/src/main/resources/mapper/purchaseReturn/PurchaseReturnMapper.xml
index d793414..7e9ba3e 100644
--- a/src/main/resources/mapper/purchaseReturn/PurchaseReturnMapper.xml
+++ b/src/main/resources/mapper/purchaseReturn/PurchaseReturnMapper.xml
@@ -28,7 +28,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR d.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)
diff --git a/src/main/resources/mapper/salesOutbound/SalesOutboundMapper.xml b/src/main/resources/mapper/salesOutbound/SalesOutboundMapper.xml
index 4240483..09da8e2 100644
--- a/src/main/resources/mapper/salesOutbound/SalesOutboundMapper.xml
+++ b/src/main/resources/mapper/salesOutbound/SalesOutboundMapper.xml
@@ -27,7 +27,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR d.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)
diff --git a/src/main/resources/mapper/salesReturn/SalesReturnMapper.xml b/src/main/resources/mapper/salesReturn/SalesReturnMapper.xml
index 7db328d..14497f9 100644
--- a/src/main/resources/mapper/salesReturn/SalesReturnMapper.xml
+++ b/src/main/resources/mapper/salesReturn/SalesReturnMapper.xml
@@ -27,8 +27,7 @@
AND (
h.order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR h.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
- OR d.part_no LIKE CONCAT('%', #{searchCode}, '%')
+ OR d.related_order_no LIKE CONCAT('%', #{searchCode}, '%')
)