-- 菜单 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', 'vehicle', 'system/vehicle/index', 1, 0, 'C', '0', '0', 'system:vehicle:list', 'car', 'admin', sysdate(), '', null, '车辆信息菜单');

-- 按钮父菜单ID
SELECT @parentId := 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('车辆信息查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'system:vehicle:query',        '#', 'admin', sysdate(), '', 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:vehicle:add',          '#', 'admin', sysdate(), '', 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', 'F', '0', 'system:vehicle:edit',         '#', 'admin', sysdate(), '', 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:vehicle:remove',       '#', 'admin', sysdate(), '', 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:vehicle:export',       '#', 'admin', sysdate(), '', null, '');

-- GPS坐标菜单
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('GPS坐标', '3', '2', 'gps', 'system/gps/index', 1, 0, 'C', '0', '0', 'system:gps:list', 'location', 'admin', sysdate(), '', null, 'GPS坐标菜单');

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

-- GPS坐标按钮
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('GPS坐标查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'system:gps:query',        '#', 'admin', sysdate(), '', 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('GPS坐标新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'system:gps:add',          '#', 'admin', sysdate(), '', 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('GPS坐标修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'system:gps:edit',         '#', 'admin', sysdate(), '', 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('GPS坐标删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'system:gps:remove',       '#', 'admin', sysdate(), '', 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('GPS坐标导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'system:gps:export',       '#', 'admin', sysdate(), '', null, '');

-- GPS采集日志菜单
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('GPS采集日志', '3', '3', 'gpslog', 'system/gpslog/index', 1, 0, 'C', '0', '0', 'system:gpslog:list', 'documentation', 'admin', sysdate(), '', null, 'GPS采集日志菜单');

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

-- GPS采集日志按钮
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('GPS采集日志查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'system:gpslog:query',        '#', 'admin', sysdate(), '', 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('GPS采集日志新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'system:gpslog:add',          '#', 'admin', sysdate(), '', 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('GPS采集日志修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'system:gpslog:edit',         '#', 'admin', sysdate(), '', 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('GPS采集日志删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'system:gpslog:remove',       '#', 'admin', sysdate(), '', 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('GPS采集日志导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'system:gpslog:export',       '#', 'admin', sysdate(), '', null, ''); 