스타일 수정중

This commit is contained in:
kjs
2025-10-30 12:03:50 +09:00
parent 244f04a199
commit 556354219a
28 changed files with 3210 additions and 321 deletions

View File

@@ -229,14 +229,6 @@ export class DynamicFormService {
...actualData
} = data;
console.log("🔍 [dynamicFormService] 받은 데이터:", {
전체데이터: data,
writer,
company_code,
created_by,
updated_by,
});
// 기본 데이터 준비
const dataToInsert: any = { ...actualData };
@@ -259,21 +251,12 @@ export class DynamicFormService {
// 작성자 정보 추가 (writer 컬럼 우선, 없으면 created_by/updated_by)
if (writer && tableColumns.includes("writer")) {
console.log(`✅ writer 추가: ${writer}`);
dataToInsert.writer = writer;
} else {
console.log(`❌ writer 추가 실패:`, {
hasWriter: !!writer,
writerValue: writer,
hasColumn: tableColumns.includes("writer"),
});
}
if (created_by && tableColumns.includes("created_by")) {
console.log(`✅ created_by 추가: ${created_by}`);
dataToInsert.created_by = created_by;
}
if (updated_by && tableColumns.includes("updated_by")) {
console.log(`✅ updated_by 추가: ${updated_by}`);
dataToInsert.updated_by = updated_by;
}
if (company_code && tableColumns.includes("company_code")) {
@@ -299,18 +282,9 @@ export class DynamicFormService {
`⚠️ company_code 길이 제한: 앞의 32자로 자름 -> "${processedCompanyCode}"`
);
}
console.log(`✅ company_code 추가: ${processedCompanyCode}`);
dataToInsert.company_code = processedCompanyCode;
} else {
console.log(`❌ company_code 추가 실패:`, {
hasCompanyCode: !!company_code,
companyCodeValue: company_code,
hasColumn: tableColumns.includes("company_code"),
});
}
console.log("🔍 [dynamicFormService] 최종 저장 데이터:", dataToInsert);
// 날짜/시간 문자열을 적절한 형태로 변환
Object.keys(dataToInsert).forEach((key) => {
const value = dataToInsert[key];