Commit cca592a15bdb90733479fd1ba70e176538f73e61
1 parent
dd068eb9
fix:【SYSTEM】修复创建租户管理员时,select/update 自动拼接user_id 问题
Showing
1 changed file
with
2 additions
and
0 deletions
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/tenant/TenantServiceImpl.java
| @@ -9,6 +9,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult; | @@ -9,6 +9,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult; | ||
| 9 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; | 9 | import cn.iocoder.yudao.framework.common.util.collection.CollectionUtils; |
| 10 | import cn.iocoder.yudao.framework.common.util.date.DateUtils; | 10 | import cn.iocoder.yudao.framework.common.util.date.DateUtils; |
| 11 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; | 11 | import cn.iocoder.yudao.framework.common.util.object.BeanUtils; |
| 12 | +import cn.iocoder.yudao.framework.datapermission.core.annotation.DataPermission; | ||
| 12 | import cn.iocoder.yudao.framework.tenant.config.TenantProperties; | 13 | import cn.iocoder.yudao.framework.tenant.config.TenantProperties; |
| 13 | import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; | 14 | import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder; |
| 14 | import cn.iocoder.yudao.framework.tenant.core.util.TenantUtils; | 15 | import cn.iocoder.yudao.framework.tenant.core.util.TenantUtils; |
| @@ -96,6 +97,7 @@ public class TenantServiceImpl implements TenantService { | @@ -96,6 +97,7 @@ public class TenantServiceImpl implements TenantService { | ||
| 96 | 97 | ||
| 97 | @Override | 98 | @Override |
| 98 | @DSTransactional // 多数据源,使用 @DSTransactional 保证本地事务,以及数据源的切换 | 99 | @DSTransactional // 多数据源,使用 @DSTransactional 保证本地事务,以及数据源的切换 |
| 100 | + @DataPermission(enable = false) // 参见 https://gitee.com/zhijiantianya/ruoyi-vue-pro/pulls/1154 说明 | ||
| 99 | public Long createTenant(TenantSaveReqVO createReqVO) { | 101 | public Long createTenant(TenantSaveReqVO createReqVO) { |
| 100 | // 校验租户名称是否重复 | 102 | // 校验租户名称是否重复 |
| 101 | validTenantNameDuplicate(createReqVO.getName(), null); | 103 | validTenantNameDuplicate(createReqVO.getName(), null); |