fix(commerce): 奖励任务菜单改用46避免覆盖转码设置
backend-ci / test (push) Failing after 5m11s

This commit is contained in:
Zhou Weidong committed 2026-11-09 10:35:37 +08:00
1 parent 64eadf1446
commit a706621786
1 file changed
+3 -2
+3 -2
View File
@@ -220,9 +220,10 @@ CROSS JOIN sys_permission p
WHERE r.code = 'super_admin' AND p.code IN ('reward:list', 'reward:update', 'reward:checkin', 'reward:grant')
ON CONFLICT (role_id, permission_id) DO NOTHING;
-- 菜单 id 用 46:35 已被「后台管理 / 转码设置」占用,复用会互相覆盖
INSERT INTO sys_menu (id, parent_id, title, route_path, route_name, component, redirect, icon,
permission_code, type, always_show, affix, sort) VALUES
(35, 22, '奖励任务', 'rewards', 'commerce-rewards',
(46, 22, '奖励任务', 'rewards', 'commerce-rewards',
'views/commerce/RewardTaskManagementView', '', '', 'reward:list', 'MENU', 0, 0, 3)
ON CONFLICT (id) DO UPDATE SET
parent_id = EXCLUDED.parent_id, title = EXCLUDED.title, route_path = EXCLUDED.route_path,
@@ -230,7 +231,7 @@ ON CONFLICT (id) DO UPDATE SET
permission_code = EXCLUDED.permission_code, type = EXCLUDED.type, sort = EXCLUDED.sort;
INSERT INTO sys_role_menu (id, role_id, menu_id)
SELECT (350000 + r.id), r.id, 35
SELECT (460000 + r.id), r.id, 46
FROM sys_role r
WHERE r.code = 'super_admin'
ON CONFLICT (role_id, menu_id) DO NOTHING;