diff --git a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationStopChargeResultTask.java b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationStopChargeResultTask.java index 6f8e7155..c1af9662 100644 --- a/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationStopChargeResultTask.java +++ b/evcs-modules/evcs-core/src/main/java/com/xhpc/evcs/notification/NotificationStopChargeResultTask.java @@ -90,12 +90,12 @@ public class NotificationStopChargeResultTask extends CoreDispatcher { ChargeResultResponse chargeResultResponse = DTOJsonHelper.parseResponseData(result, ChargeResultResponse.class, authSecretTokenOut); succStat = chargeResultResponse.getSuccStat(); - //推送成功则排除这个已推送的订单,否则则继续推送该订单 // 用于测试暂时注释 + //推送成功则排除这个已推送的订单,否则则继续推送该订单 + //将stopCommandSent置为null,表示推送成功之后该订单都不进行推送 if (succStat == 0) { - REDIS.deleteObject(pushOrderKey); + pushOrder.replace("stopCommandSent", null); + REDIS.setCacheMap(pushOrderKey, pushOrder); } -// pushOrder.put("stopCommandSent", false); -// REDIS.setCacheMap(pushOrderKey, pushOrder); } } }