【fix sonar】 JimuReportTokenService.java文件

This commit is contained in:
tianwenbo
2023-03-07 15:37:12 +08:00
parent c6e1f3ef15
commit 0b46a93d68
@@ -8,7 +8,6 @@ import com.jero.common.util.TokenUtils;
import org.jeecg.modules.jmreport.api.JmReportTokenServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
@@ -46,7 +45,7 @@ class JimuReportTokenService implements JmReportTokenServiceI {
String username = JwtUtil.getUsername(token);
//此处通过token只能拿到一个信息 用户账号 后面的就是根据账号获取其他信息 查询数据或是走redis 用户根据自身业务可自定义
SysUserCacheInfo userInfo = sysBaseAPI.getCacheUser(username);
Map<String, Object> map = new HashMap<String, Object>();
Map<String, Object> map = new HashMap<>();
//设置账号名
map.put(SYS_USER_CODE, userInfo.getSysUserCode());
//设置部门编码