fix:重复结束空订单

This commit is contained in:
ZZ 2021-11-23 09:48:13 +08:00
parent db4b92521e
commit c853325ec5

View File

@ -220,8 +220,9 @@ public class RealtimeDataLogic implements ServiceLogic {
Object orderData = problematicOrder.get("orderData"); Object orderData = problematicOrder.get("orderData");
String status = (String) problematicOrder.get("status"); String status = (String) problematicOrder.get("status");
if (!isInteger(status) && !status.equals("充电中") && orderData == null) { if (!isInteger(status) && !status.equals("充电中") && orderData == null) {
pileOrderService.abnormalOrder(orderNo); //todo 优化 通知第三方 String lorder = orderkey.replace("order:", "");
log.error("abnormal.2 order[{}]", orderNo); pileOrderService.abnormalOrder(lorder); //todo 优化 通知第三方
log.error("abnormal.2 order[{}]", lorder);
cacheGun.put("orderkey", null); cacheGun.put("orderkey", null);
idleCnt = 0; idleCnt = 0;
} }