对接内蒙古平台

This commit is contained in:
Guoqs
2024-11-07 16:47:39 +08:00
parent 4fe8981a07
commit d5d471692b

View File

@@ -215,17 +215,14 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
.collect(Collectors.toList());
dto.setStationIds(stationIdList);
}
int pageNo = dto.getPageNo() == null ? 1 : dto.getPageNo();
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
PageUtils.startPage(pageNo, pageSize);
List<ThirdPartyStationInfoVO> stationInfos = pileStationInfoService.getStationInfosByThirdParty(dto);
if (CollectionUtils.isEmpty(stationInfos)) {
// 未查到数据
return null;
}
// ThirdPartyPlatformConfig configInfo = thirdPartyPlatformConfigService.getInfoByOperatorId(dto.getOperatorId());
ThirdPartySecretInfoVO thirdPartySecretInfoVO = thirdpartySecretInfoService.queryByThirdPlatformType(thirdPlatformType);
if (thirdPartySecretInfoVO == null) {
return null;
@@ -236,7 +233,6 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
SupStationInfo stationInfo = new SupStationInfo();
String stationId = String.valueOf(pileStationInfo.getId());
stationInfo.setStationID(stationId);
// MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfo(String.valueOf(pileStationInfo.getMerchantId()));
stationInfo.setOperatorID(Constants.OPERATORID_LIANLIAN); // 组织机构代码
stationInfo.setEquipmentOwnerID(String.valueOf(pileStationInfo.getMerchantId()));
stationInfo.setStationName(pileStationInfo.getStationName());
@@ -244,7 +240,6 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
stationInfo.setIsPublicParkingLot(Integer.valueOf(pileStationInfo.getPublicParking()));
stationInfo.setCountryCode(pileStationInfo.getCountryCode());
stationInfo.setAreaCode(pileStationInfo.getAreaCode());
// areaCodeCountryside
GeoCodeInfo geoCode = TermRelationTreeCoordinate.completeGeoCode(pileStationInfo.getAddress());
if (geoCode != null) {
String areaCodeCountryside = geoCode.getCounty_code();
@@ -268,7 +263,6 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
stationInfo.setMatchCars(pileStationInfo.getMatchCars());
stationInfo.setBusineHours(getBusineHours());
stationInfo.setRoundTheClock(Constants.ONE);
// stationInfo.setMinElectricityPrice(""); // 最低充电电费率
Map<String, String> feeMap = getFeeMap(stationId);
stationInfo.setElectricityFee(feeMap.get("electricityFee")); // 电费 xx元/度
stationInfo.setServiceFee(feeMap.get("serviceFee")); // 服务费 xx元/度