src/main/java/com/ruoyi/common/handler/CustomTenantLineHandler.java
@@ -9,6 +9,7 @@ import org.apache.commons.collections4.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.util.ObjectUtils; import java.util.Set; @@ -17,8 +18,12 @@ @Override public Expression getTenantId() { try { Integer tenantId = SecurityUtils.getLoginUser().getTenantId(); return new LongValue(tenantId); } catch (Exception e) { return null; } } @Override