update 内蒙古平台添加、修改字段

This commit is contained in:
Lemon
2025-04-25 10:19:32 +08:00
parent 93c6cbfe49
commit f8743bb430
5 changed files with 51 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ public class StationInfo extends BaseStationInfo {
* <=100字符
*/
@JSONField(name = "MatchCars")
private String matchCars;
private List<String> matchCars;
/**
* 车位楼层及数量描述 N

View File

@@ -93,7 +93,7 @@ public class SupStationInfo extends StationInfo {
* 建站时间
*/
@JSONField(name = "BuildTime")
private String BuildTime;
private String buildTime;
/**
* 充换电站方位

View File

@@ -249,7 +249,13 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
stationInfo.setIsAloneApply(Integer.valueOf(pileStationInfo.getAloneApply()));
stationInfo.setIsPublicParkingLot(Integer.valueOf(pileStationInfo.getPublicParking()));
stationInfo.setCountryCode(pileStationInfo.getCountryCode());
stationInfo.setAreaCode(pileStationInfo.getAreaCode());
// stationInfo.setAreaCode(pileStationInfo.getAreaCode());
// AreaCode根据逗号分组
String[] split = StringUtils.split(pileStationInfo.getAreaCode(), ",");
// 只取最后一部分 330213
String subAreaCode = split[split.length - 1];
stationInfo.setAreaCode(subAreaCode);
GeoCodeInfo geoCode = TermRelationTreeCoordinate.completeGeoCode(pileStationInfo.getAddress());
if (geoCode != null) {
String areaCodeCountryside = geoCode.getCounty_code();
@@ -270,7 +276,7 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
pictures = Lists.newArrayList(pileStationInfo.getPictures().split(","));
}
stationInfo.setPictures(pictures);
stationInfo.setMatchCars(pileStationInfo.getMatchCars());
stationInfo.setMatchCars(Lists.newArrayList("电动汽车"));
stationInfo.setBusineHours(getBusineHours());
stationInfo.setRoundTheClock(Constants.one);
Map<String, String> feeMap = getFeeMap(stationId);
@@ -300,6 +306,12 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
if (CollectionUtils.isNotEmpty(pileList)) {
stationInfo.setEquipmentInfos(pileList); // 充电设备信息列表
}
// 额定功率
BigDecimal stationRatedPower = pileList.stream()
.map(EquipmentInfo::getEquipmentPower)
.reduce(BigDecimal.ZERO, BigDecimal::add);
stationInfo.setRatedPower(stationRatedPower);
resultList.add(stationInfo);
}
Map<String, Object> map = new LinkedHashMap<>();