fix: 修改userid的获取方式

This commit is contained in:
xiaoguangbin 2023-11-15 14:17:40 +08:00
parent ea129e94ab
commit a05cc4443d

View File

@ -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());
// 获取当前角色的颜色配置