-- 删除部分三级菜单
DELETE FROM sys_menu WHERE menu_id IN (
		'1673525798674657282',
		'1673526946869571585',
		'1673527098267168769',
		'1673527401095917570',
		'1684222436082364417',
		'1673525723072327682',
		'1673526227621933057',
	'1673526479934484481');

-- 新增三级菜单的功能权限
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766013401104175106, 1671406745336016898, 1673525659931275265, '业务日志', 'BUSINESS_LOG', '2024-03-08 16:09:40', 1339550467939639299, NULL, NULL);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766013493466943489, 1671406745336016898, 1673525659931275265, '登录日志', 'LOG_LOGIN', '2024-03-08 16:10:02', 1339550467939639299, '2024-03-08 16:41:49', 1339550467939639299);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766013586857316353, 1671406745336016898, 1673525659931275265, 'API日志', 'OPERATE_LOG', '2024-03-08 16:10:25', 1339550467939639299, '2024-03-08 16:41:24', 1339550467939639299);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766025381470851073, 1671406745336016898, 1673525912344489985, 'SQL监控', 'SQL_MONITOR', '2024-03-08 16:57:17', 1339550467939639299, NULL, NULL);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766025455466762241, 1671406745336016898, 1673525912344489985, '服务器信息', 'SERVER_MONITOR', '2024-03-08 16:57:34', 1339550467939639299, NULL, NULL);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766027897772232705, 1671406745336016898, 1673526656565014530, '主题管理', 'THEME_MANAGER', '2024-03-08 17:07:17', 1339550467939639299, NULL, NULL);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766027932140359682, 1671406745336016898, 1673526656565014530, '主题模板', 'THEME_TEMPLATE', '2024-03-08 17:07:25', 1339550467939639299, NULL, NULL);
INSERT INTO `sys_menu_options`(`menu_option_id`, `app_id`, `menu_id`, `option_name`, `option_code`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1766027969373196290, 1671406745336016898, 1673526656565014530, '主题属性', 'THEME_ATTR', '2024-03-08 17:07:34', 1339550467939639299, NULL, NULL);

-- 更新菜单的组件路径
UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '日志查看', `menu_code` = 'LOG_MANAGER', `app_id` = 1671406745336016898, `menu_sort` = 10307.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/backend/log', `antdv_component` = '/system/backend/log/index', `antdv_icon` = 'icon-menu-rizhi', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2023-06-27 11:15:17', `create_user` = NULL, `update_time` = '2024-03-11 10:10:56', `update_user` = 1339550467939639299 WHERE `menu_id` = 1673525659931275265;
UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '监控管理', `menu_code` = 'MONITOR', `app_id` = 1671406745336016898, `menu_sort` = 10308.00, `status_flag` = 1, `remark` = '', `menu_type` = 10, `antdv_router` = '/system/backend/monitor', `antdv_component` = '/system/backend/monitor/index', `antdv_icon` = 'icon-menu-jiankong', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2023-06-27 11:15:17', `create_user` = NULL, `update_time` = '2024-03-11 10:11:09', `update_user` = 1339550467939639299 WHERE `menu_id` = 1673525912344489985;
UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '主题配置', `menu_code` = 'THEME', `app_id` = 1671406745336016898, `menu_sort` = 10309.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/backend/theme', `antdv_component` = '/system/backend/theme/index', `antdv_icon` = 'icon-menu-zhuti', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2023-06-27 11:15:17', `create_user` = NULL, `update_time` = '2024-03-11 10:11:15', `update_user` = 1339550467939639299 WHERE `menu_id` = 1673526656565014530;

-- 通知公告的图标更改
UPDATE `sys_menu` SET `menu_parent_id` = -1, `menu_pids` = '[-1],', `menu_name` = '通知公告', `menu_code` = 'tongzhigonggao', `app_id` = 1671406745336016898, `menu_sort` = 104.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/notice', `antdv_component` = '/system/backend/notice/index', `antdv_icon` = 'icon-menu-wodexiaoxi', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2024-01-15 18:20:48', `create_user` = 1339550467939639299, `update_time` = '2024-03-11 10:14:06', `update_user` = 1339550467939639299 WHERE `menu_id` = 1746839841395138562;

-- 更新系统管理几个菜单的二级菜单图标
UPDATE `sys_menu` SET `menu_parent_id` = 1671407312775016450, `menu_pids` = '[-1],[1671407312775016450],', `menu_name` = '职位', `menu_code` = 'ORG_POSITION', `app_id` = 1671406745336016898, `menu_sort` = 10103.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/structure/position', `antdv_component` = '/system/structure/position/index', `antdv_icon` = 'icon-menu-zhiwei', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 3, `del_flag` = 'N', `create_time` = '2023-06-21 14:42:07', `create_user` = NULL, `update_time` = '2024-03-11 11:34:53', `update_user` = 1339550467939639299 WHERE `menu_id` = 1671407652933070850;
UPDATE `sys_menu` SET `menu_parent_id` = 1671407312775016450, `menu_pids` = '[-1],[1671407312775016450],', `menu_name` = '授权', `menu_code` = 'shouquan', `app_id` = 1671406745336016898, `menu_sort` = 10104.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/structure/empower', `antdv_component` = '/system/structure/empower/index', `antdv_icon` = 'icon-menu-shouquan', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 1, `del_flag` = 'N', `create_time` = '2024-01-18 10:22:28', `create_user` = 1339550467939639299, `update_time` = '2024-03-11 11:34:30', `update_user` = 1339550467939639299 WHERE `menu_id` = 1747806631403159554;

UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '日志查看', `menu_code` = 'LOG_MANAGER', `app_id` = 1671406745336016898, `menu_sort` = 10307.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/backend/log', `antdv_component` = '/system/backend/log/index', `antdv_icon` = 'icon-menu-rizhichakan', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 3, `del_flag` = 'N', `create_time` = '2023-06-27 11:15:17', `create_user` = NULL, `update_time` = '2024-03-11 12:57:08', `update_user` = 1339550467939639299 WHERE `menu_id` = 1673525659931275265;
UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '监控管理', `menu_code` = 'MONITOR', `app_id` = 1671406745336016898, `menu_sort` = 10308.00, `status_flag` = 1, `remark` = '', `menu_type` = 10, `antdv_router` = '/system/backend/monitor', `antdv_component` = '/system/backend/monitor/index', `antdv_icon` = 'icon-menu-jiankongguanli', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 3, `del_flag` = 'N', `create_time` = '2023-06-27 11:15:17', `create_user` = NULL, `update_time` = '2024-03-11 12:57:17', `update_user` = 1339550467939639299 WHERE `menu_id` = 1673525912344489985;
UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '主题配置', `menu_code` = 'THEME', `app_id` = 1671406745336016898, `menu_sort` = 10309.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/system/backend/theme', `antdv_component` = '/system/backend/theme/index', `antdv_icon` = 'icon-menu-zhutipeizhi', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 3, `del_flag` = 'N', `create_time` = '2023-06-27 11:15:17', `create_user` = NULL, `update_time` = '2024-03-11 12:57:23', `update_user` = 1339550467939639299 WHERE `menu_id` = 1673526656565014530;
UPDATE `sys_menu` SET `menu_parent_id` = 1673524613037191169, `menu_pids` = '[-1],[1673524613037191169],', `menu_name` = '安全策略', `menu_code` = 'anquancelve', `app_id` = 1671406745336016898, `menu_sort` = 10310.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 10, `antdv_router` = '/backend/security', `antdv_component` = '/system/backend/security/index', `antdv_icon` = 'icon-menu-anquancelue', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2023-10-07 13:52:25', `create_user` = 1339550467939639299, `update_time` = '2024-03-11 12:57:30', `update_user` = 1339550467939639299 WHERE `menu_id` = 1710533513796653058;

UPDATE `sys_menu` SET `menu_parent_id` = -1, `menu_pids` = '[-1],', `menu_name` = '门户主页', `menu_code` = 'PORTAL_INDEX', `app_id` = 1671406669800796161, `menu_sort` = 101.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 20, `antdv_router` = '/index', `antdv_component` = '/index/index', `antdv_icon` = 'icon-nav-zhuye', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2023-06-21 14:39:24', `create_user` = NULL, `update_time` = '2024-03-11 12:58:32', `update_user` = 1339550467939639299 WHERE `menu_id` = 1671406619464953857;
UPDATE `sys_menu` SET `menu_parent_id` = -1, `menu_pids` = '[-1],', `menu_name` = '个人信息', `menu_code` = 'PERSONAL_INFO', `app_id` = 1671406669800796161, `menu_sort` = 102.00, `status_flag` = 1, `remark` = NULL, `menu_type` = 20, `antdv_router` = '/index/personal', `antdv_component` = '/index/personal', `antdv_icon` = 'icon-xiala-gerenxinxi', `antdv_link_url` = NULL, `antdv_active_url` = NULL, `antdv_visible` = 'Y', `app_design_business_id` = NULL, `expand_field` = NULL, `version_flag` = 2, `del_flag` = 'N', `create_time` = '2023-06-21 14:40:04', `create_user` = NULL, `update_time` = '2024-03-11 12:58:48', `update_user` = 1339550467939639299 WHERE `menu_id` = 1671407186899759106;

