-- 清理重复的供应商履约菜单
-- 旧的 menu_id=2023 是之前从"订单履约"重命名来的，与新的 2121 重复
UPDATE sys_menu SET parent_id = 2121 WHERE parent_id = 2023;
DELETE FROM sys_role_menu WHERE menu_id = 2023;
DELETE FROM sys_menu WHERE menu_id = 2023;

-- 验证
SELECT m.menu_id, m.menu_name, m.parent_id, p.menu_name AS parent_name, m.order_num, m.perms
FROM sys_menu m
LEFT JOIN sys_menu p ON m.parent_id = p.menu_id
WHERE m.parent_id IN (2120, 2121) OR m.menu_id IN (2120, 2121)
ORDER BY m.parent_id, m.order_num;
