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