适配交流桩
This commit is contained in:
parent
b5b590c5c0
commit
4db9f3ed77
@ -117,8 +117,8 @@ public class RealtimeDataLogic implements ServiceLogic {
|
||||
REDIS.setCacheObject(lord, cacheRealtimeData);
|
||||
realtimeDataList.add(cacheRealtimeData);
|
||||
Integer cacheStartSoc = (Integer) cacheOrder.get("startSoc");
|
||||
if (cacheStartSoc == null && socInt != 0) cacheOrder.put("startSoc", socInt);
|
||||
if (socInt != 0) cacheOrder.put("endSoc", socInt);
|
||||
if (cacheStartSoc == null) cacheOrder.put("startSoc", socInt);
|
||||
cacheOrder.put("endSoc", socInt);
|
||||
cacheOrder.put("rbalance", balance);
|
||||
cacheOrder.put("remainingTime", tr);
|
||||
cacheOrder.put("status", statusplain);
|
||||
|
||||
@ -34,6 +34,7 @@ public class ServiceMainLogic {
|
||||
} catch (TxException e) {
|
||||
log.error("服务请求失败:错误码[" + e.getReturnCode() + "],错误:{" + e.getMessage() + "}");
|
||||
// saveErrorLog(sp, e);
|
||||
|
||||
try {
|
||||
terminateTransaction(sp);
|
||||
result = new ServiceResult(e.getReturnCode(), e.getMessage());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user