-- ----------------------------
-- 洪水知识库系统菜单路径修正SQL
-- 修正知识库管理和应急预案管理的路由路径
-- ----------------------------

-- 1. 修正知识库管理的路由路径
-- 从: flood/knowledgeBase/index
-- 改为: flood/knowledge/index
update sys_menu 
set component = 'flood/knowledge/index',
    update_time = sysdate()
where menu_id = '2001' and component = 'flood/knowledgeBase/index';

-- 2. 修正应急预案管理的路由路径
-- 从: flood/emergencyPlan/index
-- 改为: flood/emergency/index
update sys_menu 
set component = 'flood/emergency/index',
    update_time = sysdate()
where menu_id = '2002' and component = 'flood/emergencyPlan/index';

-- ----------------------------
-- 验证修改结果（可选，用于检查）
-- ----------------------------
-- select menu_id, menu_name, component from sys_menu where menu_id in ('2001', '2002', '2003', '2004');
