From 5eb3aa6c04b3d889c0626d31240e30c54d5fd817 Mon Sep 17 00:00:00 2001 From: CRM8000 Date: Tue, 8 Oct 2024 11:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/99 SQL/11SLN0002_CodeTable.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/99 SQL/11SLN0002_CodeTable.sql b/doc/99 SQL/11SLN0002_CodeTable.sql index 0250284f..c95b2459 100644 --- a/doc/99 SQL/11SLN0002_CodeTable.sql +++ b/doc/99 SQL/11SLN0002_CodeTable.sql @@ -58,3 +58,18 @@ INSERT INTO `t_permission_plus` (`id`, `fid`, `name`, `note`, `category`, `py`, ('ct20241008104509-edit-dataorg', 'ct20241008104509-edit-dataorg', '凭证字 - 按钮权限 - 修改数据域', '凭证字模块中按钮[修改数据域]的启用权限', '凭证字', '', 208, 'ct20241008104509'), ('ct20241008104509-edit-py', 'ct20241008104509-edit-py', '凭证字 - 按钮权限 - 修改助记码', '凭证字模块中按钮[修改助记码]的启用权限', '凭证字', '', 209, 'ct20241008104509'), ('ct20241008104509-dataorg', 'ct20241008104509-dataorg', '凭证字 - 数据域权限 - 凭证字在业务单据中的使用权限', '凭证字在业务单据中的使用权限', '凭证字', '', 300, 'ct20241008104509'); + + +# 凭证字 - 菜单项 +DELETE FROM t_menu_item_plus where id = '7BFE527C-851F-11EF-8872-E86A641ED142'; +INSERT INTO t_menu_item_plus(id, caption, fid, parent_id, show_order, py, memo, sys_category) +VALUES ('7BFE527C-851F-11EF-8872-E86A641ED142', '凭证字', 'ct20241008104509', '1101', 1000, 'PZZ', '', 1); + +# 默认角色的权限项 +TRUNCATE TABLE `t_role_permission`; +INSERT INTO `t_role_permission` (`role_id`, `permission_id`) +select 'A83F617E-A153-11E4-A9B8-782BCBD7746B' as role_id, fid as permission_id +from t_permission; +INSERT INTO `t_role_permission` (`role_id`, `permission_id`) +select 'A83F617E-A153-11E4-A9B8-782BCBD7746B' as role_id, fid as permission_id +from t_permission_plus;