From 18003448de2b7618cec803dbd3184b010b10fed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=AF=E8=88=AA=E8=80=81=E9=BD=90?= <280645618@qq.com> Date: Thu, 12 Mar 2026 20:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG:IEQ8UY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/ai-agent/src/main/resources/application.yml | 2 +- docs/qihang-erp.sql | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/ai-agent/src/main/resources/application.yml b/api/ai-agent/src/main/resources/application.yml index 70dc9623..854dd073 100644 --- a/api/ai-agent/src/main/resources/application.yml +++ b/api/ai-agent/src/main/resources/application.yml @@ -96,6 +96,6 @@ mybatis-plus: deepseek: api: - key: sk-8318ebe8e9d049d2b2a8bf506ba9b5ff + key: sk-8318ebe8e9d049d2b2a8bf506ba9b5fe endpoint: https://api.deepseek.com/v1 model: deepseek-chat \ No newline at end of file diff --git a/docs/qihang-erp.sql b/docs/qihang-erp.sql index bea83833..240152c6 100644 --- a/docs/qihang-erp.sql +++ b/docs/qihang-erp.sql @@ -3983,6 +3983,19 @@ INSERT INTO `sys_role` (`role_id`, `role_name`, `role_key`, `role_sort`, `data_s INSERT INTO `sys_role` (`role_id`, `role_name`, `role_key`, `role_sort`, `data_scope`, `menu_check_strictly`, `dept_check_strictly`, `status`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2, '普通角色', 'common', 2, '2', 1, 1, '0', '0', 'admin', '2023-08-07 19:31:37', 'admin', '2025-09-08 19:14:34', '普通角色'); COMMIT; +drop table if exists sys_role_dept; +create table sys_role_dept ( + role_id bigint(20) not null comment '角色ID', + dept_id bigint(20) not null comment '部门ID', + primary key(role_id, dept_id) +) engine=innodb comment = '角色和部门关联表'; + +-- ---------------------------- +-- 初始化-角色和部门关联表数据 +-- ---------------------------- +insert into sys_role_dept values ('2', '100'); +insert into sys_role_dept values ('2', '101'); +insert into sys_role_dept values ('2', '105'); -- ---------------------------- -- Table structure for sys_role1 -- ----------------------------