Compare commits
4 Commits
6b9dc4e19d
...
9d5e3f7bd6
| Author | SHA1 | Date |
|---|---|---|
|
|
9d5e3f7bd6 | |
|
|
60ae073606 | |
|
|
98c489ee22 | |
|
|
c77c6290d3 |
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue