-- 正确地将礼物打赏移到直播管理下，同时修改路径

-- 1. 获取直播管理ID
SELECT @live_id := id FROM eb_system_menu WHERE name = '直播管理' AND pid = 0;

-- 2. 更新礼物打赏：改变父级ID AND 修改component路径
UPDATE eb_system_menu 
SET pid = @live_id, 
    component = '/liveManage/gift/records/index',
    sort = 800
WHERE name = '礼物打赏';

-- 3. 验证
SELECT name, component, pid FROM eb_system_menu WHERE name = '礼物打赏';
