From 189849927e37278c8bc03202bd714aca7a0f8f7d Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 10 十二月 2025 11:10:03 +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 5c21ccc..e85eaef 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;
/**
@@ -26,11 +25,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 +39,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