-- 成果总体描述菜单配置
-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('成果总体描述', (select menu_id from (select menu_id from sys_menu where menu_name = '产出成果管理' limit 1) as temp), 2, 'overview', 'achievement/overview', 1, 0, 'C', '0', '0', 'achievement:overview:query', 'edit', 'admin', NOW(), 'admin', NOW(), '成果总体描述菜单');

-- 按钮父菜单ID（假设为最新插入的菜单ID）
SET @parent_menu_id = LAST_INSERT_ID();

-- 查询按钮权限
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('成果总体描述查询', @parent_menu_id, 1, '', '', 1, 0, 'F', '0', '0', 'achievement:overview:query', '#', 'admin', NOW(), 'admin', NOW(), '');

insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values('成果总体描述编辑', @parent_menu_id, 2, '', '', 1, 0, 'F', '0', '0', 'achievement:overview:edit', '#', 'admin', NOW(), 'admin', NOW(), '');