-- 医助个人业绩菜单
-- 页面路径: /stats/assistant_performance
-- 前端组件: /stats/assistant-performance/index
-- 查询权限: stats.assistantPerformance/overview

-- 获取「数据统计」目录的 id（假设已经存在）
SET @stats_root_id = (SELECT id FROM zyt_system_menu WHERE name = '数据统计' AND type = 'M' LIMIT 1);

INSERT INTO `zyt_system_menu`
    (`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
VALUES
    (@stats_root_id, 'C', '个人业绩', '', 10, 'stats.assistantPerformance/overview', '/stats/assistant_performance', '/stats/assistant-performance/index', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
