Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
以小租户的模式开发:在mapper层加 @TenantLine 注解, 用以在sql中拼接 tenant_id = xxx, xxx参数取决于 ContextUtil.getCurrentCompanyId() |
Beta Was this translation helpful? Give feedback.
-
我使用column的方式添加,进行debug,发现拼接使用的是created_org_id,且系统中其他默认的都使用的是created_org_id。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
描述:
在lamp_base_1中新建表
base_diehl_notice
,表中添加租户ID字段tenant_id
用于区分不同的租户的数据,生成代码,配置租户,设置权限等后,使用拥有该业务的租户查询表数据时,访问的库是lamp_base_XXXXXXXX, 按说应该访问lamp_base_1的库。base_diehl_notice
表结构如下:问题:
Beta Was this translation helpful? Give feedback.
All reactions