mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 内蒙古平台添加、修改字段
This commit is contained in:
@@ -1259,6 +1259,11 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
||||
equipmentInfo.setEquipmentPower(new BigDecimal(pileDetailInfoVO.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
equipmentInfo.setNewNationalStandard(1);
|
||||
equipmentInfo.setVinFlag(1);
|
||||
equipmentInfo.setSvin(1);
|
||||
equipmentInfo.setSautoPower(1);
|
||||
equipmentInfo.setVoltageUpperLimits(new BigDecimal(pileDetailInfoVO.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
equipmentInfo.setVoltageLowerLimits(new BigDecimal(pileDetailInfoVO.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
equipmentInfo.setCurrent(new BigDecimal(pileDetailInfoVO.getRatedCurrent()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
equipmentInfo.setEquipmentName(pileSn);
|
||||
equipmentInfo.setEquipmentApplication(Constants.ONE);
|
||||
equipmentInfo.setEquipmentInvestment(new BigDecimal("0.0"));
|
||||
|
||||
@@ -169,6 +169,36 @@ public class EquipmentInfo {
|
||||
@JSONField(name = "ProductSN")
|
||||
private String productSN;
|
||||
|
||||
/**
|
||||
* 是否支持自动识别VIN码
|
||||
*/
|
||||
@JSONField(name = "SVIN")
|
||||
private Integer svin;
|
||||
|
||||
/**
|
||||
* 是否支持有序充电
|
||||
*/
|
||||
@JSONField(name = "SautoPower")
|
||||
private Integer sautoPower;
|
||||
|
||||
/**
|
||||
* 额定电压上限
|
||||
*/
|
||||
@JSONField(name = "VoltageUpperLimits")
|
||||
private BigDecimal voltageUpperLimits;
|
||||
|
||||
/**
|
||||
* 额定电压下限
|
||||
*/
|
||||
@JSONField(name = "VoltageLowerLimits")
|
||||
private BigDecimal voltageLowerLimits;
|
||||
|
||||
/**
|
||||
* 额定电流
|
||||
*/
|
||||
@JSONField(name = "Current")
|
||||
private BigDecimal current;
|
||||
|
||||
|
||||
/**
|
||||
* 站点额定功率
|
||||
|
||||
@@ -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