重置空闲计数
This commit is contained in:
parent
bc59e2deb3
commit
062e0c769f
@ -104,6 +104,7 @@ public class RealtimeDataLogic implements ServiceLogic {
|
||||
Map<String, Object> cacheOrder = REDIS.getCacheMap(orderkey);
|
||||
List<CacheRealtimeData> realtimeDataList = (List<CacheRealtimeData>) cacheOrder.get("realtimeDataList");
|
||||
if (!orderNo.equals("00000000000000000000000000000000") && statusInt == 3) {
|
||||
cacheGun.put("idleCnt", 0);
|
||||
if (realtimeDataList == null) {
|
||||
realtimeDataList = new ArrayList<>();
|
||||
}
|
||||
@ -172,6 +173,7 @@ public class RealtimeDataLogic implements ServiceLogic {
|
||||
String status = (String) problematicOrder.get("status");
|
||||
if (!isInteger(status) && !status.equals("充电中") && orderData == null) {
|
||||
pileOrderService.abnormalOrder(orderNo);
|
||||
cacheGun.put("orderkey", null);
|
||||
}
|
||||
}
|
||||
cacheGun.put("idleCnt", idleCnt);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user