feat: Enhance menu and screen synchronization services with new fields

- Added `menu_icon` and `screen_group_id` fields to the `Menu` interface in `menuCopyService.ts` to support additional menu attributes.
- Updated the SQL insert statements in both `menuCopyService.ts` and `menuScreenSyncService.ts` to include the new fields, ensuring that menu icons and screen group IDs are properly handled during menu creation and synchronization.
- These enhancements improve the flexibility and functionality of the menu management system, allowing for richer menu configurations.
This commit is contained in:
DDD1542
2026-03-04 22:46:02 +09:00
parent 3a3e4e8926
commit d31568b1bd
3 changed files with 20 additions and 9 deletions

View File

@@ -334,8 +334,8 @@ export async function syncScreenGroupsToMenu(
INSERT INTO menu_info (
objid, parent_obj_id, menu_name_kor, menu_name_eng,
seq, menu_type, company_code, writer, regdate, status, screen_group_id, menu_desc,
menu_url, screen_code
) VALUES ($1, $2, $3, $4, $5, 1, $6, $7, NOW(), 'active', $8, $9, $10, $11)
menu_url, screen_code, menu_icon
) VALUES ($1, $2, $3, $4, $5, 1, $6, $7, NOW(), 'active', $8, $9, $10, $11, $12)
RETURNING objid
`;
await client.query(insertMenuQuery, [
@@ -350,6 +350,7 @@ export async function syncScreenGroupsToMenu(
group.description || null,
menuUrl,
screenCode,
group.icon || null,
]);
// screen_groups에 menu_objid 업데이트