NPE
This commit is contained in:
parent
329740cc28
commit
7e27e2e861
@ -100,11 +100,8 @@ public class RealtimeDataLogic implements ServiceLogic {
|
||||
realtimeDataList.add(cacheRealtimeData);
|
||||
String lord = orderkey.concat(".lord");
|
||||
REDIS.setCacheObject(lord, cacheRealtimeData);
|
||||
if (statusplain.equals("充电")) {
|
||||
Integer startSoc = (Integer) cacheOrder.get("startSoc");
|
||||
if (startSoc == null) cacheOrder.put("startSoc", socInt);
|
||||
cacheOrder.put("endSoc", socInt);
|
||||
}
|
||||
Integer cacheStartSoc = (Integer) cacheOrder.get("startSoc");
|
||||
if (cacheStartSoc == null) cacheOrder.put("startSoc", socInt);
|
||||
cacheOrder.put("remainingTime", tr);
|
||||
cacheOrder.put("status", statusplain);
|
||||
cacheOrder.put("realtimeDataList", realtimeDataList);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user