This commit is contained in:
2024-05-04 10:07:40 +08:00
2 changed files with 3 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ public class ChargeOrderInfo {
* 2换电站内的电池箱充电设备 * 2换电站内的电池箱充电设备
*/ */
@JSONField(name = "EquipmentClassification") @JSONField(name = "EquipmentClassification")
private String equipmentClassification; private Integer equipmentClassification;
/** /**
* 充电开始SOC * 充电开始SOC

View File

@@ -391,9 +391,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
if (StringUtils.isBlank(token)) { if (StringUtils.isBlank(token)) {
return null; return null;
} }
JSONObject json = new JSONObject(); String jsonString = JSON.toJSONString(info);
json.put("ConnectorChargeStatusInfo", info);
String jsonString = JSON.toJSONString(json);
// 发送请求 // 发送请求
String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret); String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret);
return result; return result;
@@ -596,6 +594,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
// .equipmentId() // .equipmentId()
.stationId(orderVO.getStationId()) .stationId(orderVO.getStationId())
.equipmentId(orderVO.getPileSn()) .equipmentId(orderVO.getPileSn())
.equipmentClassification(Constants.one)
.connectorId(orderVO.getPileConnectorCode()) .connectorId(orderVO.getPileConnectorCode())
.startChargeSeq(orderVO.getOrderCode()) .startChargeSeq(orderVO.getOrderCode())
.startSoc(startSoc) .startSoc(startSoc)