summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-27 10:09:14 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-27 10:09:14 +0900
commite1da84ac863989b9f63b089c09aaa2bbcdc3d6cd (patch)
tree09da6ab03778a1946605f83ac8f28b06bea75f3d /lib
parent0b0c928d87d0928fcb2129382af106ae604e1ac3 (diff)
(김준회) SWP 파라미터 선택 오류 수정 (파일개수 산정 함수)
Diffstat (limited to 'lib')
-rw-r--r--lib/swp/api-client.ts2
-rw-r--r--lib/swp/document-service.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/swp/api-client.ts b/lib/swp/api-client.ts
index e54a4c4d..1b5df041 100644
--- a/lib/swp/api-client.ts
+++ b/lib/swp/api-client.ts
@@ -652,7 +652,7 @@ export interface ParsedRevisionTree {
revisions: Array<{
revSeq: string; // "0", "1", "2", "3" (내부 시퀀스)
revNo: string; // "01", "02", "03", "04" (표시용)
- stage: string; // "IFA", "IFC"
+ stage: string; // "IFA", "IFC" 등
activities: Array<{
actvNo: string; // NodeName (예: "SHIK2017022008520078313")
inOut: "IN" | "OUT";
diff --git a/lib/swp/document-service.ts b/lib/swp/document-service.ts
index 32126676..b89d3442 100644
--- a/lib/swp/document-service.ts
+++ b/lib/swp/document-service.ts
@@ -200,7 +200,7 @@ export async function getDocumentList(
// 문서에 파일 통계 추가
const result = documents.map((doc) => {
- const allFiles = filesByDoc.get(doc.DOC_NO) || [];
+ const allFiles = filesByDoc.get(doc.OWN_DOC_NO || "") || [];
// 최신 REV의 파일만 필터링
const latestRevFiles = allFiles.filter((f) => f.REV_NO === doc.LTST_REV_NO);