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