【功能修复】定时任务在多租户下,没有记录执行的日志结果

pull/141/head
YunaiV 2024-09-12 13:39:26 +08:00
parent 9a49b84f27
commit 5f7e089bd1
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ public class TenantJobAspect {
// TODO 芋艿:先通过 parallel 实现并行1多个租户是一条执行日志2异常的情况
TenantUtils.execute(tenantId, () -> {
try {
joinPoint.proceed();
Object result = joinPoint.proceed();
results.put(tenantId, StrUtil.toStringOrNull(result));
} catch (Throwable e) {
results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
// 打印异常