Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部门管理模块增加多租户功能。新增数据,db中sys_depart,tenant_id为0 #4505

Closed
jin2001 opened this issue Jan 18, 2023 · 1 comment

Comments

@jin2001
Copy link

jin2001 commented Jan 18, 2023

版本号:3.4.4
前端版本:vue3版
问题描述:部门管理模块增加多租户功能。新增数据,db中sys_depart,tenant_id为0;已经做了初步排查。

1.sys_depart追加tenant_id int
2.MybatisPlusSaasConfig中追加 TENANT_TABLE.add("sys_depart");
3.前端请求的header中存在 tenant-id: 1
4.后端JwtFilter中代码也实现了 TenantContext.setTenant(tenantId);

@zhangdaiscott
Copy link
Member

近期会发布成熟的多租户方案,直接切换系统管理模块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants