mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update订单状态和枪口状态
This commit is contained in:
@@ -585,11 +585,17 @@ public class ChangZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
BigDecimal totalElectricityAmount = orderDetail.getTotalElectricityAmount() == null ? BigDecimal.ZERO : orderDetail.getTotalElectricityAmount();
|
||||
BigDecimal totalServiceAmount = orderDetail.getTotalServiceAmount() == null ? BigDecimal.ZERO : orderDetail.getTotalServiceAmount();
|
||||
|
||||
|
||||
Integer orderStatus = OrderStatusEnum.convertToNewStatus(orderInfo.getOrderStatus());
|
||||
Integer connectorStatus = info.getStatus();
|
||||
if (orderStatus ==0) {
|
||||
orderStatus = 5;
|
||||
}
|
||||
QueryChargingStatusVO vo = QueryChargingStatusVO.builder()
|
||||
.startChargeSeq(orderInfo.getOrderCode()) // 订单号
|
||||
.startChargeSeqStat(Integer.parseInt(orderInfo.getOrderStatus())) // 订单状态
|
||||
.startChargeSeqStat(orderStatus) // 订单状态
|
||||
.connectorID(orderInfo.getPileConnectorCode()) // 枪口编码
|
||||
.connectorStatus(info.getStatus()) // 枪口状态
|
||||
.connectorStatus(connectorStatus) // 枪口状态
|
||||
.currentA(current) // 电流
|
||||
.voltageA(voltage) // 电压
|
||||
.soc(new BigDecimal(soc))
|
||||
|
||||
Reference in New Issue
Block a user