| | |
| | | public void export(@RequestBody ChargingListQuery dto) { |
| | | ChargingOrderTimeVO res = chargingOrderService.chargingList(dto); |
| | | List<TChargingOrderExport> tChargingOrderExports = new ArrayList<>(); |
| | | List<ChargingOrderListVO> exportList = res.getExportList(); |
| | | List<ChargingOrderListVO> exportList = res.getList().getRecords(); |
| | | int i = 0; |
| | | for (ChargingOrderListVO chargingOrderListVO : exportList) { |
| | | TChargingOrderExport tChargingOrderExport = new TChargingOrderExport(); |
| | |
| | | tChargingOrderExport.setCity(data.get(0).getCity()); |
| | | tChargingOrderExport.setCityName(data.get(0).getDistricts()); |
| | | tChargingOrderExport.setSiteType(data.get(0).getSiteType()); |
| | | |
| | | tChargingOrderExport.setStatus(data.get(0).getStatus()+""); |
| | | Partner data2 = siteClient.getPartnerR(data.get(0).getPartnerId()).getData(); |
| | | if (data2!=null){ |
| | | tChargingOrderExport.setPartner(data2.getName()); |
| | |
| | | .between(TChargingOrder::getStartTime, byId.getStartTime(), byId.getEndTime()) |
| | | .eq(TChargingOrder::getStatus, 5) |
| | | .eq(TChargingOrder::getRechargePaymentStatus, 2).list(); |
| | | int i = 1; |
| | | for (TChargingOrder chargingOrder : list) { |
| | | |
| | | } |
| | | byId.setList(list); |
| | | String format = byId.getStartTime().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日HH:mm:ss")); |
| | | String format1 = byId.getEndTime().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日HH:mm:ss")); |