WIP: 停止充电逻辑优化

This commit is contained in:
ZZ 2021-11-23 14:35:47 +08:00
parent f929a6d305
commit c4a66a63f1

View File

@ -53,9 +53,7 @@ public class QueryStopChargeController {
String xhOrderNo = etOrderMapping.getXhOrderNo();
String pushOrderkey = "pushOrder:".concat(xhOrderNo);
Map<String, Object> pushOrder = REDIS.getCacheMap(pushOrderkey);
if (pushOrder == null || (pushOrder.get("isStopNotified") != null && !(Boolean) pushOrder.get("isStopNotified"))) {
pushOrder.put("isStopNotified", false);
REDIS.setCacheMap(pushOrderkey, pushOrder);
if (pushOrder == null || (pushOrder.get("isStopNotified") != null && (Boolean) pushOrder.get("isStopNotified"))) {
return failCommonResponse(queryStopChargeResponse);
}
//充电设备接口编码枪编码