| | |
| | | equipmentInfo.setEquipmentClassification(equipmentInfo.getEquipmentClassification()==null?1:equipmentInfo.getEquipmentClassification()); |
| | | |
| | | } |
| | | stationInfo.setEquipmentOwnerName("明星新能源"); |
| | | stationInfo.setResidentNo("A1234"); |
| | | if (org.springframework.util.StringUtils.hasLength(site.getEquipmentOwnerName())){ |
| | | stationInfo.setEquipmentOwnerName(site.getEquipmentOwnerName()); |
| | | }else{ |
| | | stationInfo.setEquipmentOwnerName("明星新能源"); |
| | | |
| | | } |
| | | if (org.springframework.util.StringUtils.hasLength(site.getResidentNo())){ |
| | | stationInfo.setResidentNo(site.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(site.getRecordUniqueNo())){ |
| | | stationInfo.setRecordUniqueNo(site.getRecordUniqueNo()); |
| | | }else{ |
| | | stationInfo.setRecordUniqueNo("A123998987hjn4"); |
| | | |
| | | } |
| | | |
| | | } |
| | | BaseResult baseResult = new BaseResult(); |