-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检机位信息', '2026', '1', '/manage/record_inspection_task', 'C', '0', 'manage:record_inspection_task:view', '#', 'admin', sysdate(), '', null, '巡检机位信息菜单');

-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();

-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检机位信息查询', @parentId, '1',  '#',  'F', '0', 'manage:record_inspection_task:list',         '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检机位信息新增', @parentId, '2',  '#',  'F', '0', 'manage:record_inspection_task:add',          '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检机位信息修改', @parentId, '3',  '#',  'F', '0', 'manage:record_inspection_task:edit',         '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检机位信息删除', @parentId, '4',  '#',  'F', '0', 'manage:record_inspection_task:remove',       '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('巡检机位信息导出', @parentId, '5',  '#',  'F', '0', 'manage:record_inspection_task:export',       '#', 'admin', sysdate(), '', null, '');
