From 624cfcf4edb106e6cf0b041d9437ceaa94b6a46d Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 2 Oct 2025 18:02:11 +0900
Subject: (디버깅) 돌체 디버깅 - serialNo, 변경사항 카운트
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ship-vendor-document/user-vendor-document-table-container.tsx   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'components/ship-vendor-document/user-vendor-document-table-container.tsx')

diff --git a/components/ship-vendor-document/user-vendor-document-table-container.tsx b/components/ship-vendor-document/user-vendor-document-table-container.tsx
index 775dac47..0c3390d1 100644
--- a/components/ship-vendor-document/user-vendor-document-table-container.tsx
+++ b/components/ship-vendor-document/user-vendor-document-table-container.tsx
@@ -967,6 +967,7 @@ function SubTables() {
         reviewerId: null,
         reviewerName: null,
         reviewComments: null,
+        serialNo: uploadResult.data.serialNo || null, // ✅ serialNo 추가
         createdAt: new Date(),
         updatedAt: new Date(),
         stageName: uploadResult.data.stage,
@@ -997,11 +998,12 @@ function SubTables() {
             )
 
             if (targetStage) {
-              // 기존 revision과 중복 체크 (같은 revision, usage, usageType)
+              // 기존 revision과 중복 체크 (같은 revision, usage, usageType, serialNo)
               const isDuplicate = targetStage.revisions.some(rev =>
                 rev.revision === newRevision.revision &&
                 rev.usage === newRevision.usage &&
-                rev.usageType === newRevision.usageType
+                rev.usageType === newRevision.usageType &&
+                rev.serialNo === newRevision.serialNo
               )
 
               if (!isDuplicate) {
-- 
cgit v1.2.3

