테스트테이블 생성 및 오류 수정
This commit is contained in:
@@ -704,13 +704,29 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
||||
return (value: any, format?: string, columnName?: string) => {
|
||||
if (value === null || value === undefined) return "";
|
||||
|
||||
// 디버깅: 모든 값 변환 시도를 로깅
|
||||
if (
|
||||
columnName &&
|
||||
(columnName === "contract_type" || columnName === "domestic_foreign" || columnName === "status")
|
||||
) {
|
||||
console.log(`🔍 값 변환 시도: ${columnName}="${value}"`, {
|
||||
columnMeta: columnMeta[columnName],
|
||||
hasColumnMeta: !!columnMeta[columnName],
|
||||
webType: columnMeta[columnName]?.webType,
|
||||
codeCategory: columnMeta[columnName]?.codeCategory,
|
||||
globalColumnMeta: Object.keys(columnMeta),
|
||||
});
|
||||
}
|
||||
|
||||
// 🎯 코드 컬럼인 경우 최적화된 코드명 변환 사용
|
||||
if (columnName && columnMeta[columnName]?.webType === "code" && columnMeta[columnName]?.codeCategory) {
|
||||
const categoryCode = columnMeta[columnName].codeCategory!;
|
||||
const convertedValue = optimizedConvertCode(categoryCode, String(value));
|
||||
|
||||
if (convertedValue !== String(value)) {
|
||||
console.log(`🔄 코드 변환: ${columnName}[${categoryCode}] ${value} → ${convertedValue}`);
|
||||
console.log(`🔄 코드 변환 성공: ${columnName}[${categoryCode}] ${value} → ${convertedValue}`);
|
||||
} else {
|
||||
console.log(`⚠️ 코드 변환 실패: ${columnName}[${categoryCode}] ${value} → ${convertedValue} (값 동일)`);
|
||||
}
|
||||
|
||||
value = convertedValue;
|
||||
|
||||
Reference in New Issue
Block a user