mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-23 23:09:47 +08:00
fix 修正创建租户失败时未关闭忽略租户问题 ;
This commit is contained in:
@ -124,6 +124,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
add.setTenantId(tenantId);
|
||||
boolean flag = baseMapper.insert(add) > 0;
|
||||
if (!flag) {
|
||||
TenantHelper.disableIgnore();
|
||||
throw new ServiceException("创建租户失败");
|
||||
}
|
||||
bo.setId(add.getId());
|
||||
|
Reference in New Issue
Block a user