Files
zkxw/docs/sql/migrations/2026-10-13-hide-market-mobile-sample-menus.sql
T
2026-10-13 15:18:01 +08:00

28 lines
1017 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- =============================================================================
-- 下线小程序「市场专员 / 地区经理 → 样本信息」菜单(2026-10-13)
-- =============================================================================
--
-- 样本信息(客服管理)不面向市场专员、地区经理;移动端入口与 OA H5 路由已移除。
-- 本脚本将已入库的叶子菜单设为不可见(权限码保留,避免角色菜单残留脏数据时可另行清理)。
--
-- perms:
-- mini:market:specialist:sample
-- mini:market:manager:sample
-- visible: '0'=隐藏
-- =============================================================================
UPDATE sys_menu
SET visible = '0',
update_time = NOW()
WHERE del_flag = 0
AND (
perms IN (
'mini:market:specialist:sample',
'mini:market:manager:sample'
)
OR path IN (
'/pages/market/webview/index?entry=specialist-sample',
'/pages/market/webview/index?entry=manager-sample'
)
);