From 605fbc438396f017749011441ceea472147d8971 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 10 Nov 2025 16:36:54 +0900 Subject: [PATCH] =?UTF-8?q?debug:=20writer=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=A1=B0=EC=9D=B8=20=EB=94=94=EB=B2=84=EA=B9=85=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 프론트엔드: formatCellValue에서 writer 컬럼 데이터 로깅 - 백엔드: writer 조인 설정 및 검증 상세 로깅 - 목적: writer_name이 빈값으로 표시되는 문제 원인 파악 --- backend-node/src/services/entityJoinService.ts | 9 ++++++++- .../components/table-list/TableListComponent.tsx | 11 +++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/backend-node/src/services/entityJoinService.ts b/backend-node/src/services/entityJoinService.ts index d2db8c9e..c0667ac9 100644 --- a/backend-node/src/services/entityJoinService.ts +++ b/backend-node/src/services/entityJoinService.ts @@ -73,13 +73,20 @@ export class EntityJoinService { separator: " - ", }; + logger.info(`🔍 writer 조인 설정:`, JSON.stringify(writerJoinConfig, null, 2)); + // 조인 설정 유효성 검증 - if (await this.validateJoinConfig(writerJoinConfig)) { + const isValid = await this.validateJoinConfig(writerJoinConfig); + logger.info(`🔍 writer 조인 검증 결과: ${isValid}`); + + if (isValid) { joinConfigs.push(writerJoinConfig); logger.info(`✅ writer 컬럼 조인 설정 추가됨: writer_name`); } else { logger.warn(`❌ writer 컬럼 조인 설정 검증 실패`); } + } else { + logger.info(`ℹ️ writer 컬럼 없음: ${tableName}`); } for (const column of entityColumns) { diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 838361d5..37b7cddf 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -1051,8 +1051,15 @@ export const TableListComponent: React.FC = ({ if (value === null || value === undefined) return "-"; // 🎯 writer 컬럼 자동 변환: user_id -> user_name - if (column.columnName === "writer" && rowData && rowData.writer_name) { - return rowData.writer_name; + if (column.columnName === "writer") { + console.log("🔍 writer 컬럼 데이터:", { + value, + writer_name: rowData?.writer_name, + rowData + }); + if (rowData && rowData.writer_name) { + return rowData.writer_name; + } } // 🎯 엔티티 컬럼 표시 설정이 있는 경우