修复已知问题
This commit is contained in:
@@ -164,6 +164,13 @@ public class CompanyController extends BaseController {
|
|||||||
// 写入缓存
|
// 写入缓存
|
||||||
redisUtil.set("Domain:".concat(domain), company.getTenantId());
|
redisUtil.set("Domain:".concat(domain), company.getTenantId());
|
||||||
}
|
}
|
||||||
|
// 同步更新租户表
|
||||||
|
if(StrUtil.isNotBlank(company.getShortName())){
|
||||||
|
final Tenant tenant = new Tenant();
|
||||||
|
tenant.setTenantId(company.getTenantId());
|
||||||
|
tenant.setTenantName(company.getShortName());
|
||||||
|
tenantService.updateById(tenant);
|
||||||
|
}
|
||||||
if (companyService.updateById(company)) {
|
if (companyService.updateById(company)) {
|
||||||
// 清除缓存
|
// 清除缓存
|
||||||
redisUtil.delete("TenantInfo:".concat(company.getTenantId().toString()));
|
redisUtil.delete("TenantInfo:".concat(company.getTenantId().toString()));
|
||||||
|
|||||||
Reference in New Issue
Block a user