mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
新增第三方吉林平台接口代码
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -282,20 +282,16 @@ public class SiChuanPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
if (StringUtils.isNotBlank(pileStationInfo.getPictures())) {
|
||||
stationInfo.setPictures(Lists.newArrayList(pileStationInfo.getPictures().split(",")));
|
||||
}
|
||||
List<BillingPriceVO> priceList = pileBillingTemplateService.queryBillingPrice(String.valueOf(pileStationInfo.getId()));
|
||||
StringBuilder electricityFee = new StringBuilder();
|
||||
StringBuilder serviceFee = new StringBuilder();
|
||||
// 查询计费模板
|
||||
List<BillingPriceVO> priceList = pileBillingTemplateService.queryBillingPrice(String.valueOf(pileStationInfo.getId()));
|
||||
|
||||
for (BillingPriceVO billingPriceVO : priceList) {
|
||||
electricityFee.append(billingPriceVO.getStartTime())
|
||||
.append("-").append(billingPriceVO.getEndTime())
|
||||
.append(":").append(billingPriceVO.getElectricityPrice())
|
||||
.append(",");
|
||||
serviceFee.append(billingPriceVO.getStartTime())
|
||||
.append("-").append(billingPriceVO.getEndTime())
|
||||
.append(":").append(billingPriceVO.getServicePrice())
|
||||
.append(",");
|
||||
String timeRange = billingPriceVO.getStartTime() + "-" + billingPriceVO.getEndTime() + ":";
|
||||
electricityFee.append(timeRange).append(billingPriceVO.getElectricityPrice()).append(",");
|
||||
serviceFee.append(timeRange).append(billingPriceVO.getServicePrice()).append(",");
|
||||
}
|
||||
|
||||
// 去除最后一位的分号
|
||||
electricityFee.deleteCharAt(electricityFee.length() - 1);
|
||||
serviceFee.deleteCharAt(serviceFee.length() - 1);
|
||||
@@ -337,7 +333,7 @@ public class SiChuanPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
*/
|
||||
@Override
|
||||
public String notificationStationInfo(String stationId) {
|
||||
List<SupStationInfo> stationInfos = new ArrayList<>();
|
||||
List<SupStationInfoDTO> stationInfos = new ArrayList<>();
|
||||
// 通过id查询站点相关信息
|
||||
PileStationInfo pileStationInfo = pileStationInfoService.selectPileStationInfoById(Long.parseLong(stationId));
|
||||
// 查询相关配置信息
|
||||
@@ -398,19 +394,14 @@ public class SiChuanPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
info.setOfficialRunTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, pileStationInfo.getCreateTime()));
|
||||
|
||||
|
||||
List<BillingPriceVO> priceList = pileBillingTemplateService.queryBillingPrice(String.valueOf(pileStationInfo.getId()));
|
||||
StringBuilder electricityFee = new StringBuilder();
|
||||
StringBuilder serviceFee = new StringBuilder();
|
||||
// 查询计费模板
|
||||
List<BillingPriceVO> priceList = pileBillingTemplateService.queryBillingPrice(String.valueOf(pileStationInfo.getId()));
|
||||
|
||||
for (BillingPriceVO billingPriceVO : priceList) {
|
||||
electricityFee.append(billingPriceVO.getStartTime())
|
||||
.append("-").append(billingPriceVO.getEndTime())
|
||||
.append(":").append(billingPriceVO.getElectricityPrice())
|
||||
.append(",");
|
||||
serviceFee.append(billingPriceVO.getStartTime())
|
||||
.append("-").append(billingPriceVO.getEndTime())
|
||||
.append(":").append(billingPriceVO.getServicePrice())
|
||||
.append(",");
|
||||
String timeRange = billingPriceVO.getStartTime() + "-" + billingPriceVO.getEndTime() + ":";
|
||||
electricityFee.append(timeRange).append(billingPriceVO.getElectricityPrice()).append(",");
|
||||
serviceFee.append(timeRange).append(billingPriceVO.getServicePrice()).append(",");
|
||||
}
|
||||
// 去除最后一位的分号
|
||||
electricityFee.deleteCharAt(electricityFee.length() - 1);
|
||||
@@ -1188,7 +1179,7 @@ public class SiChuanPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
connectorInfo.setVoltageLowerLimits(new BigDecimal(pileDetailInfoVO.getRatedVoltage()).setScale(4, RoundingMode.HALF_UP));
|
||||
connectorInfo.setCurrent(new BigDecimal(pileDetailInfoVO.getRatedCurrent()).setScale(4, RoundingMode.HALF_UP));
|
||||
connectorInfo.setPower(new BigDecimal(pileDetailInfoVO.getRatedPower()).setScale(4, RoundingMode.HALF_UP));
|
||||
connectorInfo.setNationalStandard(StringUtils.equals("1", pileDetailInfoVO.getSpeedType()) ? 12 : 11);
|
||||
connectorInfo.setNationalStandard(2);
|
||||
connectorInfo.setAuxPower(3); // 3-兼容12V和24V
|
||||
connectorInfo.setOperateStatus(50); // 50-正常使用
|
||||
|
||||
|
||||
Reference in New Issue
Block a user