From 9fa1e9aa80718718c2991b5fb32db0dd50ef1248 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Tue, 03 Feb 2026 15:52:02 +0800
Subject: [PATCH] 修改
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 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 5c21ccc..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;
@@ -12,7 +11,6 @@
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
-import java.util.Collections;
import java.util.List;
/**
@@ -26,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);
@@ -40,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