| | |
| | | stationInfo.setBusineHours(datum.getStartServiceTime()); |
| | | stationInfo.setRoundTheClock(datum.getRoundTheClock()); |
| | | stationInfo.setParkType(datum.getParkType()); |
| | | stationInfo.setElectricityFee("{"+datum.getElectricityFee()+"}"); |
| | | if (org.springframework.util.StringUtils.hasLength(datum.getElectricityFee())){ |
| | | stationInfo.setElectricityFee("{"+datum.getElectricityFee()+"}"); |
| | | } |
| | | stationInfo.setServiceFee("{"+datum.getServiceFee()+"}"); |
| | | stationInfo.setParkFee("{\"rules\":"+datum.getParkFee()+","+"\"freeDuration\":"+datum.getParkFeeFree()+"}"); |
| | | stationInfo.setElectricityType(datum.getElectricityType()); |
| | |
| | | } |
| | | stationInfo.setRoundTheClock(stationInfo.getRoundTheClock()==null?1:stationInfo.getRoundTheClock()); |
| | | stationInfo.setParkType(stationInfo.getParkType()==null?1:stationInfo.getParkType()); |
| | | stationInfo.setElectricityFee("{\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\"}"); |
| | | stationInfo.setServiceFee("{"+"\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\""+"}"); |
| | | if (!org.springframework.util.StringUtils.hasLength(stationInfo.getElectricityFee())){ |
| | | stationInfo.setElectricityFee("{\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\"}"); |
| | | } |
| | | if (!org.springframework.util.StringUtils.hasLength(stationInfo.getServiceFee())){ |
| | | stationInfo.setServiceFee("{"+"\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\""+"}"); |
| | | } |
| | | stationInfo.setElectricityType(stationInfo.getElectricityType()==null?1:stationInfo.getElectricityType()); |
| | | stationInfo.setBusinessExpandType(stationInfo.getBusinessExpandType()==null?1:stationInfo.getBusinessExpandType()); |
| | | stationInfo.setCapacity(stationInfo.getCapacity()==null?new BigDecimal("1.0000"):stationInfo.getCapacity()); |
| | | stationInfo.setRatedPower(stationInfo.getCapacity()==null?new BigDecimal("40.0000"):stationInfo.getCapacity()); |
| | | stationInfo.setPeriodFee(1); |
| | | stationInfo.setPeriodFee(stationInfo.getPeriodFee()==null?1:stationInfo.getPeriodFee()); |
| | | stationInfo.setOfficialRunTime(org.springframework.util.StringUtils.hasLength(stationInfo.getOfficialRunTime())?stationInfo.getOfficialRunTime():"2025-01-01"); |
| | | stationInfo.setVideoMonitor(stationInfo.getVideoMonitor()==null?1:stationInfo.getVideoMonitor()); |
| | | int i = 0; |
| | |
| | | |
| | | } |
| | | stationInfo.setEquipmentOwnerName("明星新能源"); |
| | | stationInfo.setResidentNo("A1234"); |
| | | if (org.springframework.util.StringUtils.hasLength(stationInfo.getResidentNo())){ |
| | | stationInfo.setResidentNo(stationInfo.getResidentNo()); |
| | | }else{ |
| | | stationInfo.setResidentNo("A1234"); |
| | | |
| | | } |
| | | stationInfo.setSupplyType(stationInfo.getSupplyType()==null?1:stationInfo.getSupplyType()); |
| | | stationInfo.setWattHourMeterNo(org.springframework.util.StringUtils.hasLength(stationInfo.getWattHourMeterNo())?stationInfo.getWattHourMeterNo():UUID.randomUUID().toString().replaceAll("-", "")); |
| | | stationInfo.setForwardPower(stationInfo.getForwardPower()==null?"1.3654":stationInfo.getForwardPower()); |
| | | String uuid = UUID.randomUUID().toString(); |
| | | String randomString = uuid.replaceAll("-", ""); // 去除'-' |
| | | stationInfo.setRecordUniqueNo(randomString); |
| | | |
| | | if (org.springframework.util.StringUtils.hasLength(stationInfo.getRecordUniqueNo())){ |
| | | stationInfo.setRecordUniqueNo(stationInfo.getRecordUniqueNo()); |
| | | }else{ |
| | | stationInfo.setRecordUniqueNo(randomString); |
| | | } |
| | | } |
| | | String timeStamp = System.currentTimeMillis() + ""; |
| | | SequenceGenerator generator = new SequenceGenerator(); |
| | |
| | | supEquipChargeStatus.setStartTime(chargingOrder.getStartTime() != null ? chargingOrder.getStartTime().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) : ""); |
| | | supEquipChargeStatus.setEndTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); |
| | | supEquipChargeStatus.setTotalPower(chargingOrder.getElectrovalence()); |
| | | List<Operator> operators = operatorClient.getAllOperator().getData(); |
| | | for (Operator operator : operators) { |
| | | tcecSuperviseUtil.notificationSupEquipChargeStatus(operator, supEquipChargeStatus); |
| | | } |
| | | |
| | | tcecSuperviseUtil.notificationSupEquipChargeStatus(new Operator(), supEquipChargeStatus); |
| | | return R.ok(); |
| | | } |
| | | /** |
| | |
| | | supChargeOrderInfo.setStopDesc("费用不足中止"); |
| | | break; |
| | | } |
| | | |
| | | List<Operator> operators = operatorClient.getAllOperator().getData(); |
| | | for (Operator operator : operators) { |
| | | tcecSuperviseUtil.notificationChargeOrderInfo(operator, supChargeOrderInfo); |
| | | } |
| | | tcecSuperviseUtil.notificationChargeOrderInfo(new Operator(), supChargeOrderInfo); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | stationInfo.setConstruction(255); |
| | | } |
| | | stationInfo.setRoundTheClock(stationInfo.getRoundTheClock()==null?1:stationInfo.getRoundTheClock()); |
| | | stationInfo.setRoundTheClock(0); |
| | | stationInfo.setParkType(stationInfo.getParkType()==null?1:stationInfo.getParkType()); |
| | | stationInfo.setElectricityFee("{\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\"}"); |
| | | stationInfo.setServiceFee("{"+"\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\""+"}"); |
| | | if (org.springframework.util.StringUtils.hasLength(site.getElectricityFee())){ |
| | | stationInfo.setElectricityFee("{"+site.getElectricityFee()+"}"); |
| | | }else{ |
| | | stationInfo.setElectricityFee("{\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\"}"); |
| | | } |
| | | if (org.springframework.util.StringUtils.hasLength(site.getServiceFee())){ |
| | | stationInfo.setServiceFee("{"+site.getServiceFee()+"}"); |
| | | }else{ |
| | | stationInfo.setServiceFee("{"+"\"00:00:00-00:30:00\":\"0.4901\",\"00:00:30-01:00:00\":\"0.1234\""+"}"); |
| | | } |
| | | stationInfo.setElectricityType(stationInfo.getElectricityType()==null?1:stationInfo.getElectricityType()); |
| | | stationInfo.setBusinessExpandType(stationInfo.getBusinessExpandType()==null?1:stationInfo.getBusinessExpandType()); |
| | | stationInfo.setCapacity(stationInfo.getCapacity()==null?new BigDecimal("1.0000"):stationInfo.getCapacity()); |