Merge branch 'main' of http://39.117.244.52:3000/kjs/ERP-node into feature/v2-unified-renewal

This commit is contained in:
kjs
2026-01-26 09:35:00 +09:00
7 changed files with 680 additions and 369 deletions

View File

@@ -937,11 +937,17 @@ export class DynamicFormService {
})
.join(", ");
// 🆕 JSONB 타입 값은 JSON 문자열로 변환
// 🆕 JSONB 타입 값은 JSON 문자열로 변환, 빈 문자열은 null로 변환
const values: any[] = Object.keys(changedFields).map((key) => {
const value = changedFields[key];
const dataType = columnTypes[key];
// 🔧 빈 문자열은 null로 변환 (날짜 필드 등에서 값을 지울 때 필요)
if (value === "" || value === undefined) {
console.log(`🔄 빈 값 → null 변환: ${key}`);
return null;
}
// JSONB/JSON 타입이고 배열/객체인 경우 JSON 문자열로 변환
if (
(dataType === "jsonb" || dataType === "json") &&