-- 菜单 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('驾驶员信息', '3', '1', 'driver_info', 'system/driver_info/index', 1, 0, 'C', '0', '0', 'system:driver_info:list', '#', 'admin', current_timestamp, '', null, '驾驶员信息菜单');

-- 按钮父菜单ID
--SELECT @parentId := LAST_INSERT_ID();
select max(menu_id) from sys_menu;

/*
   全局替换 @parentId 为 上面语句查询出来的 max(menu_id)
*/

-- 按钮 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('驾驶员信息查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'system:driver_info:query',        '#', 'admin', current_timestamp, '', null, '');

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('驾驶员信息新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'system:driver_info:add',          '#', 'admin', current_timestamp, '', null, '');

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('驾驶员信息修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'system:driver_info:edit',         '#', 'admin', current_timestamp, '', null, '');

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('驾驶员信息删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'system:driver_info:remove',       '#', 'admin', current_timestamp, '', null, '');

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('驾驶员信息导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'system:driver_info:export',       '#', 'admin', current_timestamp, '', null, '');