mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
bugfix 修复推送江苏省平台推送频率
This commit is contained in:
@@ -433,15 +433,13 @@ public class NRServiceImpl implements NRService {
|
||||
if (StringUtils.isBlank(token)) {
|
||||
return null;
|
||||
}
|
||||
// 根据交易流水号查询订单信息
|
||||
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||
log.info("江苏省平台查询订单信息: {}", orderBasicInfo);
|
||||
if (orderBasicInfo == null) {
|
||||
return null;
|
||||
}
|
||||
if (StringUtils.isBlank(DateUtils.formatDateTime(orderBasicInfo.getChargeStartTime()))) {
|
||||
log.error("江苏省平台查询订单信息, 充电开始时间为空: {}", orderBasicInfo);
|
||||
return null;
|
||||
Date chargeStartTime = new Date();
|
||||
if (StringUtils.equals(connectorStatus, "03")) {
|
||||
// 根据交易流水号查询订单信息
|
||||
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
|
||||
if (orderBasicInfo != null) {
|
||||
chargeStartTime = orderBasicInfo.getChargeStartTime();
|
||||
}
|
||||
}
|
||||
// 封装对象
|
||||
NRConnectorStatusInfo nrConnectorStatusInfo = NRConnectorStatusInfo.builder()
|
||||
@@ -450,7 +448,7 @@ public class NRServiceImpl implements NRService {
|
||||
.currentA(new BigDecimal(realTimeMonitorData.getOutputCurrent()).intValue())
|
||||
.voltageA(new BigDecimal(realTimeMonitorData.getOutputVoltage()).intValue())
|
||||
.soc(BigDecimal.ZERO)
|
||||
.beginTime(DateUtils.formatDateTime(orderBasicInfo.getChargeStartTime()))
|
||||
.beginTime(DateUtils.formatDateTime(chargeStartTime))
|
||||
.currentKwh(new BigDecimal(realTimeMonitorData.getChargingDegree()).setScale(3, BigDecimal.ROUND_HALF_UP))
|
||||
.timeStamp((int) (System.currentTimeMillis() / 1000))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user