mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
对接内蒙古平台
This commit is contained in:
@@ -215,17 +215,14 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
dto.setStationIds(stationIdList);
|
dto.setStationIds(stationIdList);
|
||||||
}
|
}
|
||||||
|
|
||||||
int pageNo = dto.getPageNo() == null ? 1 : dto.getPageNo();
|
int pageNo = dto.getPageNo() == null ? 1 : dto.getPageNo();
|
||||||
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
||||||
|
|
||||||
PageUtils.startPage(pageNo, pageSize);
|
PageUtils.startPage(pageNo, pageSize);
|
||||||
List<ThirdPartyStationInfoVO> stationInfos = pileStationInfoService.getStationInfosByThirdParty(dto);
|
List<ThirdPartyStationInfoVO> stationInfos = pileStationInfoService.getStationInfosByThirdParty(dto);
|
||||||
if (CollectionUtils.isEmpty(stationInfos)) {
|
if (CollectionUtils.isEmpty(stationInfos)) {
|
||||||
// 未查到数据
|
// 未查到数据
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
// ThirdPartyPlatformConfig configInfo = thirdPartyPlatformConfigService.getInfoByOperatorId(dto.getOperatorId());
|
|
||||||
ThirdPartySecretInfoVO thirdPartySecretInfoVO = thirdpartySecretInfoService.queryByThirdPlatformType(thirdPlatformType);
|
ThirdPartySecretInfoVO thirdPartySecretInfoVO = thirdpartySecretInfoService.queryByThirdPlatformType(thirdPlatformType);
|
||||||
if (thirdPartySecretInfoVO == null) {
|
if (thirdPartySecretInfoVO == null) {
|
||||||
return null;
|
return null;
|
||||||
@@ -236,7 +233,6 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
SupStationInfo stationInfo = new SupStationInfo();
|
SupStationInfo stationInfo = new SupStationInfo();
|
||||||
String stationId = String.valueOf(pileStationInfo.getId());
|
String stationId = String.valueOf(pileStationInfo.getId());
|
||||||
stationInfo.setStationID(stationId);
|
stationInfo.setStationID(stationId);
|
||||||
// MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfo(String.valueOf(pileStationInfo.getMerchantId()));
|
|
||||||
stationInfo.setOperatorID(Constants.OPERATORID_LIANLIAN); // 组织机构代码
|
stationInfo.setOperatorID(Constants.OPERATORID_LIANLIAN); // 组织机构代码
|
||||||
stationInfo.setEquipmentOwnerID(String.valueOf(pileStationInfo.getMerchantId()));
|
stationInfo.setEquipmentOwnerID(String.valueOf(pileStationInfo.getMerchantId()));
|
||||||
stationInfo.setStationName(pileStationInfo.getStationName());
|
stationInfo.setStationName(pileStationInfo.getStationName());
|
||||||
@@ -244,7 +240,6 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
stationInfo.setIsPublicParkingLot(Integer.valueOf(pileStationInfo.getPublicParking()));
|
stationInfo.setIsPublicParkingLot(Integer.valueOf(pileStationInfo.getPublicParking()));
|
||||||
stationInfo.setCountryCode(pileStationInfo.getCountryCode());
|
stationInfo.setCountryCode(pileStationInfo.getCountryCode());
|
||||||
stationInfo.setAreaCode(pileStationInfo.getAreaCode());
|
stationInfo.setAreaCode(pileStationInfo.getAreaCode());
|
||||||
// areaCodeCountryside
|
|
||||||
GeoCodeInfo geoCode = TermRelationTreeCoordinate.completeGeoCode(pileStationInfo.getAddress());
|
GeoCodeInfo geoCode = TermRelationTreeCoordinate.completeGeoCode(pileStationInfo.getAddress());
|
||||||
if (geoCode != null) {
|
if (geoCode != null) {
|
||||||
String areaCodeCountryside = geoCode.getCounty_code();
|
String areaCodeCountryside = geoCode.getCounty_code();
|
||||||
@@ -268,7 +263,6 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
stationInfo.setMatchCars(pileStationInfo.getMatchCars());
|
stationInfo.setMatchCars(pileStationInfo.getMatchCars());
|
||||||
stationInfo.setBusineHours(getBusineHours());
|
stationInfo.setBusineHours(getBusineHours());
|
||||||
stationInfo.setRoundTheClock(Constants.ONE);
|
stationInfo.setRoundTheClock(Constants.ONE);
|
||||||
// stationInfo.setMinElectricityPrice(""); // 最低充电电费率
|
|
||||||
Map<String, String> feeMap = getFeeMap(stationId);
|
Map<String, String> feeMap = getFeeMap(stationId);
|
||||||
stationInfo.setElectricityFee(feeMap.get("electricityFee")); // 电费 xx元/度
|
stationInfo.setElectricityFee(feeMap.get("electricityFee")); // 电费 xx元/度
|
||||||
stationInfo.setServiceFee(feeMap.get("serviceFee")); // 服务费 xx元/度
|
stationInfo.setServiceFee(feeMap.get("serviceFee")); // 服务费 xx元/度
|
||||||
|
|||||||
Reference in New Issue
Block a user