功能测试通过

This commit is contained in:
Cheney Wong
2025-06-30 17:24:16 +08:00
parent 9efe703bca
commit 1775683210
8 changed files with 52 additions and 37 deletions
@@ -6,6 +6,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
import static com.sunyard.sge.database.SydApiBaseFunction.toBoolArray;
@@ -301,7 +302,15 @@ public class SydApiLongLinkWrap implements SydApi {
}
return ret;
} catch (Exception e) {
}
catch (ExecutionException e) {
Throwable cause = e.getCause();
if (cause instanceof SydApiException) {
throw (SydApiException) cause;
}
throw new SydApiException("并行任务执行失败", 0xC101);
}
catch (Exception e) {
throw new SydApiException("并行任务执行失败", 0xC101, e);
}
}
@@ -469,4 +478,4 @@ public class SydApiLongLinkWrap implements SydApi {
throw new SydApiException("并行任务执行失败", 0xC101, e);
}
}
}
}