From e0e136f627de2c724b84b02fda02376b53c9e97b Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期二, 24 六月 2025 13:30:06 +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