| | |
| | | .list(); |
| | | List<TChargingOrderAccountingStrategy> stageCostAll = tChargingOrderAccountingStrategyService.list( |
| | | ); |
| | | List<TVip> data5 = vipClient.getAllVip().getData(); |
| | | List<TAppUserCar> data8 = appUserCarClient.getAllCar().getData(); |
| | | for (ChargingOrderListVO chargingOrderListVO : exportList) { |
| | | TChargingOrderExport tChargingOrderExport = new TChargingOrderExport(); |
| | | Site site = data9.stream().filter(e -> e.getId().equals(chargingOrderListVO.getSiteId())).findFirst().orElse(null); |
| | |
| | | tChargingOrderExport.setIsSocNum("0"); |
| | | tChargingOrderExport.setUserType("普通个人用户"); |
| | | if (data3!=null&&data3.getVipId()!=null){ |
| | | TVip data1 = vipClient.getInfo1(data3.getVipId()).getData(); |
| | | TVip data1 = data5.stream().filter(e->e.getId().equals(data3.getVipId())).findFirst().orElse(null); |
| | | if (data1!=null){ |
| | | tChargingOrderExport.setVipType(data1.getName()); |
| | | } |
| | |
| | | tChargingOrderExport.setDeviceCode(data4.getCode()); |
| | | } |
| | | tChargingOrderExport.setAccountType("个人"); |
| | | List<TAppUserCar> data1 = appUserCarClient.getCarByIds(Arrays.asList(chargingOrderListVO.getAppUserCarId())).getData(); |
| | | if (data1!=null&&(!data1.isEmpty())){ |
| | | tChargingOrderExport.setCarNumber(data1.get(0).getLicensePlate()); |
| | | tChargingOrderExport.setCarType(data1.get(0).getVehicleModel()); |
| | | tChargingOrderExport.setCarBrand(data1.get(0).getVehicleBrand()); |
| | | |
| | | |
| | | TAppUserCar tAppUserCar = data8.stream().filter(e -> e.getId().equals(chargingOrderListVO.getAppUserId())).findFirst().orElse(null); |
| | | if (tAppUserCar!=null){ |
| | | tChargingOrderExport.setCarNumber(tAppUserCar.getLicensePlate()); |
| | | tChargingOrderExport.setCarType(tAppUserCar.getVehicleModel()); |
| | | tChargingOrderExport.setCarBrand(tAppUserCar.getVehicleBrand()); |
| | | } |
| | | tChargingOrderExport.setOrderCode(chargingOrderListVO.getCode()); |
| | | tChargingOrderExport.setIsSingle("是"); |