Files
SMT-ERP/smtERP-boot/docs/sql_update_permission_management.sql
2026-10-13 16:15:00 +08:00

14 lines
615 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.
-- 为“角色管理”菜单增加“权限管理”按钮权限(按钮编号 8)
-- 当前项目 Mapper 使用 tbl_function;如部署库仍使用旧表名 jsh_function,请替换表名后执行。
UPDATE `tbl_function`
SET `push_btn` = CASE
WHEN `push_btn` IS NULL OR `push_btn` = '' THEN '8'
WHEN FIND_IN_SET('8', `push_btn`) = 0 THEN CONCAT(`push_btn`, ',8')
ELSE `push_btn`
END
WHERE `number` = '000102'
AND IFNULL(`delete_flag`, '0') != '1';
-- 执行后使用 admin 登录,在“角色管理 -> 分配按钮”中,
-- 给需要管理全部菜单的角色勾选“权限管理”。