中电联协议 queryStationsInfo 接口添加站点图片字段

This commit is contained in:
Lemon
2024-01-19 15:28:55 +08:00
parent 7942d73834
commit 1475500dd1
2 changed files with 8 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ public class ZDLStationInfo {
@JSONField(name = "ParkFee")
private String parkFee;
@JSONField(name = "Pictures")
private List<String> pictures;
@JSONField(name = "EquipmentInfos")
private List<ZDLEquipmentInfo> equipmentInfos;
}

View File

@@ -2,6 +2,7 @@ package com.jsowell.thirdparty.zhongdianlian.service.impl;
import com.alibaba.fastjson2.JSONObject;
import com.github.pagehelper.PageInfo;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.jsowell.common.constant.Constants;
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
@@ -358,6 +359,10 @@ public class ZDLServiceImpl implements ZDLService {
if (StringUtils.isNotBlank(pileStationInfo.getParkFeeDescribe())) {
stationInfo.setParkFee(pileStationInfo.getParkFeeDescribe());
}
// 站点图片
if (StringUtils.isNotBlank(pileStationInfo.getPictures())) {
stationInfo.setPictures(Lists.newArrayList(pileStationInfo.getPictures().split(",")));
}
List<ZDLEquipmentInfo> pileList = getPileList(pileStationInfo);
if (CollectionUtils.isNotEmpty(pileList)) {