From 44036f6e3f4d443d58f594774ef89221f7a87036 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Mon, 02 Feb 2026 17:28:34 +0800
Subject: [PATCH] 增加初始化数据

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 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 c5f9497..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);
 
@@ -39,10 +38,10 @@
 
     @Override
     public int saveInformationPlatform(InformationPlatform informationPlatform) {
-        Long companyId = informationPlatform.getCompanyId();
-        if (!companyId.equals(SecurityUtils.getCompanyId())){
-            throw new ApiException("无权操作!");
-        }
+//        Long companyId = informationPlatform.getCompanyId();
+//        if (!companyId.equals(SecurityUtils.getCompanyId())){
+//            throw new ApiException("无权操作!");
+//        }
 
         if (informationPlatform.getId() != null){
             informationPlatform.setUpdateTime(LocalDateTime.now());

--
Gitblit v1.9.2