Commit 50148465 by chenxi

修复批量转账失败无企微通知问题

1 parent d5bfe457
...@@ -233,12 +233,12 @@ public class NbCbBatchTransferService { ...@@ -233,12 +233,12 @@ public class NbCbBatchTransferService {
if (failReason.length() > 400) { if (failReason.length() > 400) {
failReason = failReason.substring(0, 400).concat("..."); failReason = failReason.substring(0, 400).concat("...");
} }
if (e instanceof RpcServiceException) {
throw e;
}
//调用宁波接口异常时,回调处理 //调用宁波接口异常时,回调处理
String finalFailReason = failReason; String finalFailReason = failReason;
taskExecutor.execute(() -> notifyTransferFailResult(nbCbBatchTransfer.getDjSerialNo(), finalFailReason)); taskExecutor.execute(() -> notifyTransferFailResult(nbCbBatchTransfer.getDjSerialNo(), finalFailReason));
if (e instanceof RpcServiceException) {
throw e;
}
throw new RpcServiceException(DefaultErrorEnum.SERVER_ERROR, e.getMessage()); throw new RpcServiceException(DefaultErrorEnum.SERVER_ERROR, e.getMessage());
} finally { } finally {
Byte transferStatus = transferSuccess ? TransferStatusEnum.TRANSFER_LAUNCHED.getValue() : TransferStatusEnum.TRANSFER_LAUNCH_FAILED.getValue(); Byte transferStatus = transferSuccess ? TransferStatusEnum.TRANSFER_LAUNCHED.getValue() : TransferStatusEnum.TRANSFER_LAUNCH_FAILED.getValue();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!