|
@@ -41,6 +41,9 @@ public class SysLogininforServiceImpl implements ISysLogininforService {
|
|
Long tenantId;
|
|
Long tenantId;
|
|
try {
|
|
try {
|
|
tenantId = SecurityUtils.getTenantId();
|
|
tenantId = SecurityUtils.getTenantId();
|
|
|
|
+ if (tenantId == null) {
|
|
|
|
+ tenantId = 0L;
|
|
|
|
+ }
|
|
} catch (Exception exception) {
|
|
} catch (Exception exception) {
|
|
tenantId = 0L; // 0L 表示当前是admin(租户信息表id自增「自增id不会从0开始」)
|
|
tenantId = 0L; // 0L 表示当前是admin(租户信息表id自增「自增id不会从0开始」)
|
|
}
|
|
}
|