From 9f3e19a5d5d526d8a22af43d38770e519c78b230 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Fri, 27 Jun 2025 16:33:38 +0800
Subject: [PATCH] 修改
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java | 5 ++---
1 files changed, 2 insertions(+), 3 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..c5f9497 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);
@@ -41,7 +40,7 @@
@Override
public int saveInformationPlatform(InformationPlatform informationPlatform) {
Long companyId = informationPlatform.getCompanyId();
- if (!companyId.equals(SecurityUtils.getLoginUser().getUser().getCompanyId())){
+ if (!companyId.equals(SecurityUtils.getCompanyId())){
throw new ApiException("无权操作!");
}
--
Gitblit v1.9.2