From 2892b2a80babdde59f8dcf6750b26870a6d6a853 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期一, 16 六月 2025 14:05:41 +0800 Subject: [PATCH] 部分功能调整 --- multi-system/src/main/java/com/gkhy/exam/system/service/impl/InformationPlatformServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 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..5c21ccc 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 @@ -27,7 +27,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 +41,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