| | |
| | | import com.ruoyi.chargingPile.api.dto.GetSiteListDTO; |
| | | import com.ruoyi.chargingPile.api.feignClient.*; |
| | | import com.ruoyi.chargingPile.api.model.*; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByChargingPileIdsVo; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByCode; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.dto.ChargingOrderGroup; |
| | |
| | | @Override |
| | | public TCharingOrderVO chargingOrder(ChargingOrderQuery dto) { |
| | | TCharingOrderVO tCharingOrderVO = new TCharingOrderVO(); |
| | | List<TChargingGun> allGun = chargingGunClient.getAllGun().getData(); |
| | | List<TChargingPile> allPile = chargingGunClient.getAllPile().getData(); |
| | | List<Site> data9 = siteClient.getSiteAll().getData(); |
| | | List<TAppUser> data6 = appUserClient.getAllUser().getData(); |
| | | List<TAppUserCar> data4 = appUserCarClient.getAllCar().getData(); |
| | | String startTime1 = null; |
| | | String startTime2 = null; |
| | | String endTime1 = null; |
| | |
| | | list3 = chargingOrderAccountingStrategyService.list(new LambdaQueryWrapper<TChargingOrderAccountingStrategy>() |
| | | .in(TChargingOrderAccountingStrategy::getChargingOrderId, collect)); |
| | | } |
| | | |
| | | if(list.isEmpty()){ |
| | | return tCharingOrderVO; |
| | | } |
| | | |
| | | List<Integer> chargingPileId = list.stream().map(ChargingOrderVO::getChargingPileId).collect(Collectors.toList()); |
| | | GetChargingGunByChargingPileIdsVo getChargingGunByChargingPileIdsVo = new GetChargingGunByChargingPileIdsVo(); |
| | | getChargingGunByChargingPileIdsVo.setChargingPileIds(chargingPileId); |
| | | List<TChargingGun> allGun = chargingGunClient.getChargingGunByChargingPileIds(getChargingGunByChargingPileIdsVo).getData(); |
| | | List<Integer> siteIdss = list.stream().map(ChargingOrderVO::getSiteId).collect(Collectors.toList()); |
| | | List<TChargingPile> allPile = chargingPileClient.getChargingPileBySiteIds(siteIdss).getData(); |
| | | List<Site> data9 = siteClient.getSiteByIds(siteIdss).getData(); |
| | | List<Long> appUserIds = list.stream().map(ChargingOrderVO::getAppUserId).collect(Collectors.toList()); |
| | | List<TAppUser> data6 = appUserClient.getUserByIds(appUserIds).getData(); |
| | | List<Long> appUserCarIds = list.stream().map(ChargingOrderVO::getAppUserCarId).collect(Collectors.toList()); |
| | | List<TAppUserCar> data4 = appUserCarClient.getCarByIds(appUserCarIds).getData(); |
| | | |
| | | for (ChargingOrderVO chargingOrderVO : list) { |
| | | if (roleType == 2) { |
| | | for (Integer siteId : siteIds) { |