Revert "fix(tenant): 修复多租户定时任务执行结果为空时的异常"

This reverts commit 94a18018ae.
pull/201/head
hmb 2024-12-05 09:16:34 +08:00
parent 94a18018ae
commit beb3fde96d
1 changed files with 0 additions and 6 deletions

View File

@ -50,12 +50,6 @@ public class TenantJobAspect {
TenantUtils.execute(tenantId, () -> {
try {
Object result = joinPoint.proceed();
if(null == result){
XxlJobHelper.log(StrUtil.format("[多租户({}) 执行任务({})结果为null]",
tenantId, joinPoint.getSignature()));
//避免ConcurrentHashMap put空指针异常
result = "";
}
results.put(tenantId, StrUtil.toStringOrEmpty(result));
} catch (Throwable e) {
results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));