|
@@ -205,7 +205,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
|
|
//校验失效
|
|
//校验失效
|
|
|
SysAdminAddCacheDTO adminCache = cacheUtil.getAdminCache(adminAddDTO.getTenantId());
|
|
SysAdminAddCacheDTO adminCache = cacheUtil.getAdminCache(adminAddDTO.getTenantId());
|
|
|
//缓存对象内容为空即缓存不存在
|
|
//缓存对象内容为空即缓存不存在
|
|
|
- if (StrUtil.isBlank(adminCache.getTenantId())) {
|
|
|
|
|
|
|
+ if (ObjectUtil.isNull(adminCache) || StrUtil.isBlank(adminCache.getTenantId())) {
|
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "缓存已失效,请重新生成链接添加管理员");
|
|
throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001, "缓存已失效,请重新生成链接添加管理员");
|
|
|
}
|
|
}
|
|
|
if(CompareUtil.compare(adminCache.getTenantId(), adminCache.getTenantId(), true)!=0){
|
|
if(CompareUtil.compare(adminCache.getTenantId(), adminCache.getTenantId(), true)!=0){
|