-- 菜单 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('车辆信息', '2009', '1', 'vehicle_info', 'system/vehicle_info/index', 1, 0, 'C', '0', '0', 'system:vehicle_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('车辆信息查询', '2010', '1',  '#', '', 1, 0, 'F', '0', '0', 'system:vehicle_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('车辆信息新增', '2010', '2',  '#', '', 1, 0, 'F', '0', '0', 'system:vehicle_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('车辆信息修改', '2010', '3',  '#', '', 1, 0, 'F', '0', '0', 'system:vehicle_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('车辆信息删除', '2010', '4',  '#', '', 1, 0, 'F', '0', '0', 'system:vehicle_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('车辆信息导出', '2010', '5',  '#', '', 1, 0, 'F', '0', '0', 'system:vehicle_info:export',       '#', 'admin', current_timestamp, '', null, '');