Merge remote-tracking branch 'origin/main' into ksh

This commit is contained in:
SeongHyun Kim 2025-12-29 09:05:54 +09:00
commit 6365ce4921
1 changed files with 9 additions and 4 deletions

View File

@ -2201,15 +2201,20 @@ export class MenuCopyService {
"system",
]);
await client.query(
const result = await client.query(
`INSERT INTO screen_menu_assignments (
screen_id, menu_objid, company_code, display_order, is_active, created_by
) VALUES ${assignmentValues}`,
) VALUES ${assignmentValues}
ON CONFLICT (screen_id, menu_objid, company_code) DO NOTHING`,
assignmentParams
);
}
logger.info(`✅ 화면-메뉴 할당 완료: ${validAssignments.length}`);
logger.info(
`✅ 화면-메뉴 할당 완료: ${result.rowCount}개 삽입 (${validAssignments.length - (result.rowCount || 0)}개 중복 무시)`
);
} else {
logger.info(`📭 화면-메뉴 할당할 항목 없음`);
}
}
/**