From 65139d649658dc2e38ac6fc8d1b73263deb14f13 Mon Sep 17 00:00:00 2001 From: wen <1455474577@qq.com> Date: Tue, 16 Nov 2021 16:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9notification=5Fstop=5Fcharge?= =?UTF-8?q?=5Fresult=5Ftask=E7=9A=84=E5=88=A0=E9=99=A4pushOrder=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification/NotificationStopChargeResultTask.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } }