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