mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
update 优化租户域名带有大写时无法正确获取租户
This commit is contained in:
parent
67dfec2f7c
commit
717acc00ab
@ -264,6 +264,12 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
SysTenant tenant = MapstructUtils.convert(bo, SysTenant.class);
|
||||
tenant.setTenantId(null);
|
||||
tenant.setPackageId(null);
|
||||
|
||||
String domain = tenant.getDomain();
|
||||
if (domain != null && !domain.isBlank()) {
|
||||
tenant.setDomain(domain.toLowerCase());
|
||||
}
|
||||
|
||||
return baseMapper.updateById(tenant) > 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user