From 8bda5d156d97a6f86da6ee068447643a2fff8c4f Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Mon, 02 Feb 2026 16:27:44 +0800
Subject: [PATCH] 去除多余引用

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java
index a28fe7b..eb2dde9 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java
@@ -3,7 +3,6 @@
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.gkhy.exam.common.constant.UserConstant;
-import com.gkhy.exam.common.exception.ApiException;
 import com.gkhy.exam.common.utils.SecurityUtils;
 import com.gkhy.exam.system.domain.InformationPlatform;
 import com.gkhy.exam.system.mapper.InformationPlatformMapper;
@@ -25,11 +24,11 @@
 
     @Override
     public List<InformationPlatform> getInformationPlatforms(Long companyId) {
-        if (companyId == null) {
-            companyId = SecurityUtils.getCompanyId();
-        }
+
         LambdaQueryWrapper<InformationPlatform> queryWrapper = new LambdaQueryWrapper<>();
-        queryWrapper.eq(InformationPlatform::getCompanyId, companyId);
+        if (companyId != null){
+            queryWrapper.eq(InformationPlatform::getCompanyId, companyId);
+        }
         queryWrapper.eq(InformationPlatform::getDelFlag, UserConstant.ENABLE);
         queryWrapper.orderByDesc(InformationPlatform::getCreateTime);
 

--
Gitblit v1.9.2