# Conflicts:
#	yudao-dependencies/pom.xml
This commit is contained in:
YunaiV 2023-12-30 10:49:15 +08:00
commit d4bb268803
3 changed files with 22 additions and 1 deletions

View File

@ -115,7 +115,7 @@
<!-- 积木报表-->
<dependency>
<groupId>org.jeecgframework.jimureport</groupId>
<artifactId>jimureport-spring-boot-starter</artifactId>
<artifactId>jimureport-spring-boot3-starter</artifactId>
</dependency>
<!-- 单独依赖升级版本解决低版本validator失败问题 -->
<dependency>

View File

@ -128,4 +128,20 @@ public class JmReportTokenServiceImpl implements JmReportTokenServiceI {
return user;
}
@Override
public String[] getRoles(String s) {
// 暂时不用实现因为不用 JmReport 的角色
return null;
}
@Override
public String getTenantId() {
// 补充说明不能直接通过 TenantContext 获取因为 jimu 报表前端请求时没有带上 tenant-id Header
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
if (loginUser == null) {
return null;
}
return StrUtil.toStringOrNull(loginUser.getTenantId());
}
}

View File

@ -76,6 +76,11 @@ spring:
--- #################### 定时任务相关配置 ####################
# 积木报表配置
jeecg:
jmreport:
saas-mode: tenant
--- #################### 芋道相关配置 ####################
yudao: