mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 13:07:57 +08:00
update
This commit is contained in:
@@ -386,7 +386,6 @@ public class SiChuanPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String notificationStationInfo(String stationId) {
|
public String notificationStationInfo(String stationId) {
|
||||||
List<SupStationInfoDTO> stationInfos = new ArrayList<>();
|
|
||||||
// 通过id查询站点相关信息
|
// 通过id查询站点相关信息
|
||||||
PileStationInfo pileStationInfo = pileStationInfoService.selectPileStationInfoById(Long.parseLong(stationId));
|
PileStationInfo pileStationInfo = pileStationInfoService.selectPileStationInfoById(Long.parseLong(stationId));
|
||||||
// 查询相关配置信息
|
// 查询相关配置信息
|
||||||
@@ -497,13 +496,12 @@ public class SiChuanPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
if (CollectionUtils.isNotEmpty(pileList)) {
|
if (CollectionUtils.isNotEmpty(pileList)) {
|
||||||
info.setEquipmentInfosDTO(pileList); // 充电设备信息列表
|
info.setEquipmentInfosDTO(pileList); // 充电设备信息列表
|
||||||
}
|
}
|
||||||
stationInfos.add(info);
|
|
||||||
|
|
||||||
// 调用中电联平台接口
|
// 调用中电联平台接口
|
||||||
String url = urlAddress + "supervise_notification_station_info";
|
String url = urlAddress + "supervise_notification_station_info";
|
||||||
|
|
||||||
JSONObject data = new JSONObject();
|
JSONObject data = new JSONObject();
|
||||||
data.put("SupStationInfos", stationInfos);
|
data.put("SupStationInfos", info);
|
||||||
|
|
||||||
String jsonString = JSON.toJSONString(data);
|
String jsonString = JSON.toJSONString(data);
|
||||||
System.out.println("jsonString : " + jsonString);
|
System.out.println("jsonString : " + jsonString);
|
||||||
|
|||||||
@@ -858,9 +858,9 @@ public class WeiWangKuaiDianPlatformServiceImpl implements ThirdPartyPlatformSer
|
|||||||
|
|
||||||
QueryChargingStatusVO vo = QueryChargingStatusVO.builder()
|
QueryChargingStatusVO vo = QueryChargingStatusVO.builder()
|
||||||
.startChargeSeq(orderInfo.getOrderCode()) // 订单号
|
.startChargeSeq(orderInfo.getOrderCode()) // 订单号
|
||||||
.startChargeSeqStat(Integer.parseInt(orderInfo.getOrderStatus())) // 订单状态
|
.startChargeSeqStat(Integer.parseInt(orderStatus)) // 订单状态
|
||||||
.connectorID(orderInfo.getPileConnectorCode()) // 枪口编码
|
.connectorID(orderInfo.getPileConnectorCode()) // 枪口编码
|
||||||
.connectorStatus(info.getStatus()) // 枪口状态
|
.connectorStatus(connectorStatus) // 枪口状态
|
||||||
.currentA(current) // 电流
|
.currentA(current) // 电流
|
||||||
.voltageA(voltage) // 电压
|
.voltageA(voltage) // 电压
|
||||||
.soc(new BigDecimal(soc))
|
.soc(new BigDecimal(soc))
|
||||||
|
|||||||
Reference in New Issue
Block a user