From d0191ea7bc8c25aed57168de6ceffa284c072f36 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Tue, 10 Feb 2026 09:09:40 +0800
Subject: [PATCH] 条款区分公司
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 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 a28fe7b..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);
--
Gitblit v1.9.2