-- 业绩看板医助排行榜接口权限（fans/yeji · pid=293）
-- 已存在则跳过，幂等

INSERT INTO `zyt_system_menu`
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
SELECT
    293, 'A', '业绩-医助排行榜', '', 5,
    'stats.yejiStats/leaderboard', '', '', '', '',
    1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
FROM dual
WHERE NOT EXISTS (
    SELECT 1 FROM `zyt_system_menu` m
    WHERE m.pid = 293 AND m.perms = 'stats.yejiStats/leaderboard'
);
