update 新电途平台添加 ParkFee 字段

This commit is contained in:
Lemon
2024-01-17 17:19:01 +08:00
parent 8e4c7bd5c7
commit 95c036d950
2 changed files with 7 additions and 0 deletions

View File

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

View File

@@ -258,6 +258,10 @@ public class ZDLServiceImpl implements ZDLService {
stationInfo.setStationLng(new BigDecimal(pileStationInfo.getStationLng()));
stationInfo.setStationLat(new BigDecimal(pileStationInfo.getStationLat()));
stationInfo.setConstruction(Integer.parseInt(pileStationInfo.getConstruction()));
// 停车费率描述
if (StringUtils.isNotBlank(pileStationInfo.getParkFeeDescribe())) {
stationInfo.setParkFee(pileStationInfo.getParkFeeDescribe());
}
List<ZDLEquipmentInfo> pileList = getPileList(pileStationInfo);
if (CollectionUtils.isNotEmpty(pileList)) {