| | |
| | | import com.ruoyi.chargingPile.api.domain.SiteMenu; |
| | | import com.ruoyi.chargingPile.mapper.SiteMapper; |
| | | import com.ruoyi.chargingPile.service.*; |
| | | import com.ruoyi.chargingPile.util.UUIDUtil; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | |
| | | threadPoolExecutor.execute(()->{ |
| | | StationInfoReq stationInfoReq = new StationInfoReq(); |
| | | stationInfoReq.setOperatorId("91510903906171535D"); |
| | | stationInfoReq.setStationId(site.getId().toString()); |
| | | stationInfoReq.setStationId(site.getCode()); |
| | | OperatorInfo operatorInfo = new OperatorInfo(); |
| | | operatorInfo.setOperatorId("91510903906171535D"); |
| | | operatorInfo.setOperatorName("四川明星新能源科技有限公司"); |
| | | operatorInfo.setOperatorTel1("18683346252"); |
| | | operatorInfo.setOperatorTel2("13982508784"); |
| | | operatorInfo.setOperatorRegAddress("遂宁市船山区渠河南路18号"); |
| | | operatorInfo.setOperatorNote(""); |
| | | stationInfoReq.setOperatorInfo(operatorInfo); |
| | | List<StationInfo> stationInfos = new ArrayList<>(); |
| | | stationInfos.add(buildStationInfo(site)); |
| | |
| | | StationInfo stationInfo = new StationInfo(); |
| | | stationInfo.setSerAreaCode(site.getSerAreaCode()); |
| | | stationInfo.setOperatorId("91510903906171535D"); |
| | | stationInfo.setStationId(site.getId().toString()); |
| | | stationInfo.setStationId(site.getCode()); |
| | | stationInfo.setStationName(site.getName()); |
| | | stationInfo.setStationMode("CD"); |
| | | stationInfo.setAreaCode(site.getDistrictsCode()); |
| | |
| | | stationInfo.setPictures(Arrays.asList(site.getImgUrl().split(","))); |
| | | } |
| | | stationInfo.setMatchCars(site.getVehicleDescription()); |
| | | stationInfo.setBusineHours(site.getStartServiceTime() + " - " + site.getEndServiceTime()); |
| | | stationInfo.setBusinessHours(site.getStartServiceTime() + " - " + site.getEndServiceTime()); |
| | | stationInfo.setSiteGuide(""); |
| | | stationInfo.setPictures(new ArrayList<>()); |
| | | stationInfo.setMatchCars(""); |
| | | stationInfo.setElectricityFee(BigDecimal.ZERO); |
| | | stationInfo.setServiceFee(BigDecimal.ZERO); |
| | | stationInfo.setParkFee(BigDecimal.ZERO); |
| | | stationInfo.setPayment("2"); |
| | | stationInfo.setSupportOrder(0); |
| | | stationInfo.setEquipmentInfos(buildEquipmentInfo(site)); |
| | | return stationInfo; |
| | | } |
| | |
| | | EquipmentInfo equipmentInfo = new EquipmentInfo(); |
| | | equipmentInfo.setEquipmentId(chargingPile.getId().toString()); |
| | | equipmentInfo.setEquipmentName(chargingPile.getName()); |
| | | equipmentInfo.setManufacturerId(chargingPile.getManufacturerCode()); |
| | | equipmentInfo.setManufacturerName(chargingPile.getManufacturer()); |
| | | equipmentInfo.setEquipmentModel(chargingPile.getEquipmentType()); |
| | | equipmentInfo.setManufacturerId(StringUtils.isNotEmpty(chargingPile.getManufacturerCode()) ? chargingPile.getManufacturerCode() : "91510900MACPB4NJ4E"); |
| | | equipmentInfo.setManufacturerName(StringUtils.isNotEmpty(chargingPile.getManufacturer()) ? chargingPile.getManufacturer() : ""); |
| | | equipmentInfo.setEquipmentModel(StringUtils.isNotEmpty(chargingPile.getEquipmentType()) ? chargingPile.getEquipmentType() : ""); |
| | | if(null != chargingPile.getProductionDate()){ |
| | | equipmentInfo.setProductionDate(chargingPile.getProductionDate().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))); |
| | | }else{ |
| | | equipmentInfo.setProductionDate(""); |
| | | } |
| | | equipmentInfo.setEquipmentType(0 == chargingPile.getType() ? 5 : chargingPile.getType()); |
| | | if(StringUtils.isNotEmpty(chargingPile.getEquipmentLng())){ |
| | |
| | | connectorInfo.setPower(chargingGun.getRatedPower().doubleValue()); |
| | | connectorInfo.setParkNo(chargingGun.getParkingNumber()); |
| | | connectorInfo.setNationalStandard(Integer.parseInt(chargingGun.getNationalStandard())); |
| | | connectorInfo.setParkNo(""); |
| | | add(connectorInfo); |
| | | } |
| | | }}; |
| | |
| | | threadPoolExecutor.execute(()->{ |
| | | StationInfoReq stationInfoReq = new StationInfoReq(); |
| | | stationInfoReq.setOperatorId("91510903906171535D"); |
| | | stationInfoReq.setStationId(site.getId().toString()); |
| | | stationInfoReq.setStationId(site.getCode()); |
| | | OperatorInfo operatorInfo = new OperatorInfo(); |
| | | operatorInfo.setOperatorId("91510903906171535D"); |
| | | operatorInfo.setOperatorName("四川明星新能源科技有限公司"); |
| | | operatorInfo.setOperatorTel1("18683346252"); |
| | | operatorInfo.setOperatorTel2("13982508784"); |
| | | operatorInfo.setOperatorRegAddress("遂宁市船山区渠河南路18号"); |
| | | operatorInfo.setOperatorNote(""); |
| | | stationInfoReq.setOperatorInfo(operatorInfo); |
| | | List<StationInfo> stationInfos = new ArrayList<>(); |
| | | stationInfos.add(buildStationInfo(site)); |