Compare commits

...

2 Commits

1 changed files with 8 additions and 1 deletions

View File

@ -84,7 +84,14 @@ export const SplitPanelLayoutComponent: React.FC<SplitPanelLayoutComponentProps>
// "테이블명.컬럼명" 형식을 "원본컬럼_조인컬럼명" 형식으로 변환하여 데이터 접근
const getEntityJoinValue = useCallback(
(item: any, columnName: string, entityColumnMap?: Record<string, string>): any => {
// 직접 매칭 시도
// 🆕 백엔드가 제공하는 _label 필드 우선 사용
// 백엔드는 "표시 컬럼"이 설정된 경우 columnName_label을 자동 생성
const labelKey = `${columnName}_label`;
if (item[labelKey] !== undefined && item[labelKey] !== "" && item[labelKey] !== null) {
return item[labelKey];
}
// 직접 매칭 시도 (JOIN된 값이 없으면 원본 값 반환)
if (item[columnName] !== undefined) {
return item[columnName];
}