From a05cc4443db2b1d1143aa365fcdb1d1d0faab539 Mon Sep 17 00:00:00 2001 From: xiaoguangbin Date: Wed, 15 Nov 2023 14:17:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9userid=E7=9A=84?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/service/impl/GammaServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java index eb523551..0493d4fa 100644 --- a/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java +++ b/jeecg-module-spectrum-analysis/src/main/java/org/jeecg/modules/service/impl/GammaServiceImpl.java @@ -1034,10 +1034,8 @@ public class GammaServiceImpl extends AbstractLogOrReport implements IGammaServi return result; } // 获取当前用户信息 - SysUser user = userTaskUtil.findUserByName(userName); - if (Objects.nonNull(user)) { - phd.setUserId(user.getId()); - } + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + phd.setUserId(sysUser.getId()); // 赋值xml文件存放路径 phd.setXmlFilePath(parameterProperties.getFilePath()); // 获取当前角色的颜色配置