From e81044d3375d00f08c2b4d66c1d09d18873360ba Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Fri, 27 Jun 2025 16:03:29 +0800
Subject: [PATCH] 部分功能调整
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java | 11 +++++------
1 files changed, 5 insertions(+), 6 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 aa04a95..a28fe7b 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
@@ -12,7 +12,6 @@
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
-import java.util.Collections;
import java.util.List;
/**
@@ -27,7 +26,7 @@
@Override
public List<InformationPlatform> getInformationPlatforms(Long companyId) {
if (companyId == null) {
- companyId = SecurityUtils.getLoginUser().getUser().getCompanyId();
+ companyId = SecurityUtils.getCompanyId();
}
LambdaQueryWrapper<InformationPlatform> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(InformationPlatform::getCompanyId, companyId);
@@ -40,10 +39,10 @@
@Override
public int saveInformationPlatform(InformationPlatform informationPlatform) {
- Long companyId = informationPlatform.getCompanyId();
- if (!companyId.equals(SecurityUtils.getLoginUser().getUser().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