diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java index 9226f8b2..871f03e6 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationChargeOrderInfoTask.java @@ -49,9 +49,14 @@ public class NotificationChargeOrderInfoTask extends CoreDispatcher { if (authSecretToken.getOperatorId3irdpty().equals(operatorId3rdptyEvcs)) { ChargeOrderInfo chargeOrderInfo = new ChargeOrderInfo(horder); final ChargeOrderInfoResponse pushResp = notify(chargeOrderInfo, authSecretToken); - horder.setConfirmResult(pushResp.getConfirmResult()); - logger.info("3rd part order {} push result: {}", horder.getSerialNumber(), pushResp.getConfirmResult()); - xhpcHistoryOrderRepository.save(horder); + if (pushResp != null) { + horder.setConfirmResult(pushResp.getConfirmResult()); + logger.info("3rd part order {} push result: {}", horder.getSerialNumber(), pushResp.getConfirmResult()); + xhpcHistoryOrderRepository.save(horder); + } else { + logger.error("3dp[{}] order[{}/{}] push fail", operatorId3rdptyEvcs, + horder.getSerialNumber(), horder.getInternetSerialNumber()); + } } } }