-- ----------------------------
-- AR巡检模块菜单和权限SQL
-- 菜单ID从2000开始,避免与系统菜单冲突
-- ----------------------------

-- 一级菜单: AR巡检
INSERT INTO sys_menu VALUES('2000', 'AR巡检', '0', '6', 'inspection', null, '', 1, 0, 'M', '0', '0', '', 'guide', 103, 1, sysdate(), null, null, 'AR巡检管理目录');

-- 二级菜单: 设备管理
INSERT INTO sys_menu VALUES('2001', '设备管理', '2000', '1', 'device', 'inspection/device/index', '', 1, 0, 'C', '0', '0', 'inspection:device:list', 'monitor', 103, 1, sysdate(), null, null, 'AR设备管理菜单');

-- 二级菜单: 区域管理
INSERT INTO sys_menu VALUES('2002', '区域管理', '2000', '2', 'region', 'inspection/region/index', '', 1, 0, 'C', '0', '0', 'inspection:region:list', 'location', 103, 1, sysdate(), null, null, '巡检区域管理菜单');

-- 二级菜单: 点位管理
INSERT INTO sys_menu VALUES('2003', '点位管理', '2000', '3', 'point', 'inspection/point/index', '', 1, 0, 'C', '0', '0', 'inspection:point:list', 'position', 103, 1, sysdate(), null, null, '巡检点位管理菜单');

-- 二级菜单: 任务模板
INSERT INTO sys_menu VALUES('2004', '任务模板', '2000', '4', 'task', 'inspection/task/index', '', 1, 0, 'C', '0', '0', 'inspection:task:list', 'list', 103, 1, sysdate(), null, null, '巡检任务模板管理菜单');

-- 二级菜单: 巡检步骤
INSERT INTO sys_menu VALUES('2005', '巡检步骤', '2000', '5', 'step', 'inspection/step/index', '', 1, 0, 'C', '0', '0', 'inspection:step:list', 'tree', 103, 1, sysdate(), null, null, '巡检步骤管理菜单');

-- 二级菜单: 步骤媒体
INSERT INTO sys_menu VALUES('2006', '步骤媒体', '2000', '6', 'stepMedia', 'inspection/stepMedia/index', '', 1, 0, 'C', '0', '0', 'inspection:stepMedia:list', 'picture', 103, 1, sysdate(), null, null, '步骤媒体文件管理菜单');

-- 二级菜单: 执行记录
INSERT INTO sys_menu VALUES('2007', '执行记录', '2000', '7', 'execution', 'inspection/execution/index', '', 1, 0, 'C', '0', '0', 'inspection:execution:list', 'documentation', 103, 1, sysdate(), null, null, '任务执行记录菜单');

-- 二级菜单: 步骤记录
INSERT INTO sys_menu VALUES('2008', '步骤记录', '2000', '8', 'stepRecord', 'inspection/stepRecord/index', '', 1, 0, 'C', '0', '0', 'inspection:stepRecord:list', 'edit', 103, 1, sysdate(), null, null, '步骤执行记录菜单');

-- ================================================
-- 设备管理按钮权限 (2001)
-- ================================================
INSERT INTO sys_menu VALUES('2101', '设备查询', '2001', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:device:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2102', '设备新增', '2001', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:device:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2103', '设备修改', '2001', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:device:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2104', '设备删除', '2001', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:device:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2105', '设备导出', '2001', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:device:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 区域管理按钮权限 (2002)
-- ================================================
INSERT INTO sys_menu VALUES('2111', '区域查询', '2002', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:region:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2112', '区域新增', '2002', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:region:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2113', '区域修改', '2002', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:region:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2114', '区域删除', '2002', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:region:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2115', '区域导出', '2002', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:region:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 点位管理按钮权限 (2003)
-- ================================================
INSERT INTO sys_menu VALUES('2121', '点位查询', '2003', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:point:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2122', '点位新增', '2003', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:point:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2123', '点位修改', '2003', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:point:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2124', '点位删除', '2003', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:point:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2125', '点位导出', '2003', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:point:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 任务模板按钮权限 (2004)
-- ================================================
INSERT INTO sys_menu VALUES('2131', '任务查询', '2004', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:task:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2132', '任务新增', '2004', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:task:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2133', '任务修改', '2004', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:task:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2134', '任务删除', '2004', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:task:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2135', '任务导出', '2004', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:task:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 巡检步骤按钮权限 (2005)
-- ================================================
INSERT INTO sys_menu VALUES('2141', '步骤查询', '2005', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:step:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2142', '步骤新增', '2005', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:step:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2143', '步骤修改', '2005', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:step:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2144', '步骤删除', '2005', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:step:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2145', '步骤导出', '2005', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:step:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 步骤媒体按钮权限 (2006)
-- ================================================
INSERT INTO sys_menu VALUES('2151', '媒体查询', '2006', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepMedia:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2152', '媒体新增', '2006', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepMedia:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2153', '媒体修改', '2006', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepMedia:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2154', '媒体删除', '2006', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepMedia:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2155', '媒体导出', '2006', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepMedia:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 执行记录按钮权限 (2007)
-- ================================================
INSERT INTO sys_menu VALUES('2161', '记录查询', '2007', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:execution:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2162', '记录新增', '2007', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:execution:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2163', '记录修改', '2007', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:execution:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2164', '记录删除', '2007', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:execution:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2165', '记录导出', '2007', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:execution:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 步骤记录按钮权限 (2008)
-- ================================================
INSERT INTO sys_menu VALUES('2171', '记录查询', '2008', '1', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepRecord:query', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2172', '记录新增', '2008', '2', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepRecord:add', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2173', '记录修改', '2008', '3', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepRecord:edit', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2174', '记录删除', '2008', '4', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepRecord:remove', '#', 103, 1, sysdate(), null, null, '');
INSERT INTO sys_menu VALUES('2175', '记录导出', '2008', '5', '', '', '', 1, 0, 'F', '0', '0', 'inspection:stepRecord:export', '#', 103, 1, sysdate(), null, null, '');

-- ================================================
-- 统计说明
-- ================================================
-- 菜单总数: 9个 (1个一级菜单 + 8个二级菜单)
-- 按钮权限总数: 40个 (8个模块 × 5个按钮)
-- 合计: 49条权限配置
-- ================================================
