Merge pull request #694 from shanaiardor/fix/tenantjob-aspect-voidretuenfail
修复由于多租户定时任务方法返回 void 导致的 xxlJob 任务执行失败的问题
This commit is contained in:
commit
9f4e94deb1
|
@ -46,7 +46,7 @@ public class TenantJobAspect {
|
|||
TenantUtils.execute(tenantId, () -> {
|
||||
try {
|
||||
Object result = joinPoint.proceed();
|
||||
results.put(tenantId, StrUtil.toStringOrNull(result));
|
||||
results.put(tenantId, StrUtil.toStringOrEmpty(result));
|
||||
} catch (Throwable e) {
|
||||
log.error("[execute][租户({}) 执行 Job 发生异常", tenantId, e);
|
||||
results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
|
||||
|
|
Loading…
Reference in New Issue