mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 内蒙古平台添加、修改字段
This commit is contained in:
@@ -190,7 +190,7 @@ public class StationInfo extends BaseStationInfo {
|
||||
* <=100字符
|
||||
*/
|
||||
@JSONField(name = "MatchCars")
|
||||
private String matchCars;
|
||||
private List<String> matchCars;
|
||||
|
||||
/**
|
||||
* 车位楼层及数量描述 N
|
||||
|
||||
@@ -93,7 +93,7 @@ public class SupStationInfo extends StationInfo {
|
||||
* 建站时间
|
||||
*/
|
||||
@JSONField(name = "BuildTime")
|
||||
private String BuildTime;
|
||||
private String buildTime;
|
||||
|
||||
/**
|
||||
* 充换电站方位
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user