This commit is contained in:
YAS\29473
2025-05-09 13:34:44 +08:00
parent 8865b66998
commit 7f65bf6822

View File

@@ -703,11 +703,15 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
// OrderBasicInfo orderBasicInfo = orderBasicInfoService.queryChargingByPileConnectorCode(orderInfo.getPileConnectorCode());
List<RealTimeMonitorData> list = orderBasicInfoService.getChargingRealTimeData(orderInfo.getTransactionCode());
RealTimeMonitorData realTimeMonitorData = list.get(0);
//获取枪口状态
PileConnectorInfoVO connectorInfoVO = pileConnectorInfoService.getPileConnectorInfoByConnectorCode(orderInfo.getPileConnectorCode());
int connectorStatus = connectorInfoVO.getStatus();
// 拼装联联参数
ConnectorChargeStatusInfo info = ConnectorChargeStatusInfo.builder()
.startChargeSeq(orderCode)
.connectorID(orderInfo.getPileConnectorCode())
.connectorStatus(Integer.valueOf(realTimeMonitorData.getConnectorStatus()))
//协议"1空闲2占用未充电3占用充电中4占用预约锁定5未响应 6启动中 7放电中 8充放电结束 9充放电暂停 10不可用 255故障"
.connectorStatus(connectorStatus == 0 ? 10 : connectorStatus)
.currentA(new BigDecimal(realTimeMonitorData.getOutputCurrent()))
.voltageA(new BigDecimal(realTimeMonitorData.getOutputVoltage()))
.soc(new BigDecimal(realTimeMonitorData.getSOC()))
@@ -1596,7 +1600,7 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
String dataSecretIv = lianLianPlatformSecretInfo.getTheirDataSecretIv();
String urlAddress = lianLianPlatformSecretInfo.getTheirUrlPrefix();
String url = urlAddress + BusinessInformationExchangeEnum.NOTIFICATION_STOP_CHARGE_RESULT.getValue();
String url = urlAddress + BusinessInformationExchangeEnum.NOTIFICATION_START_CHARGE_RESULT.getValue();
// 拼装联联平台参数
JSONObject json = new JSONObject();
@@ -1607,7 +1611,6 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
String jsonString = JSON.toJSONString(json);
log.info("请求参数:{}", jsonString);
String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);
String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret);