| | |
| | | @GetMapping("/getLargeScreenGun") |
| | | public R<LargeScreenGunVo> getLargeScreenGun(){ |
| | | LargeScreenGunVo largeScreenGunVo = new LargeScreenGunVo(); |
| | | List<TChargingGun> tChargingGuns = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getDelFlag, 0).in(TChargingGun::getSiteId,25,26).in(TChargingGun::getChargeMode, 1,2,4)); |
| | | List<TChargingGun> tChargingGuns = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getDelFlag, 0).in(TChargingGun::getSiteId,26).in(TChargingGun::getChargeMode, 1,2,4)); |
| | | if(tChargingGuns.isEmpty()){ |
| | | return R.ok(largeScreenGunVo); |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 大屏 根据站点ids和充电模式集合查询充电枪集合 没有过滤del_flag |
| | | */ |
| | | @GetMapping("/getGunIdsBySiteIdsAndChargeModels") |
| | | public R<List<Integer>> getGunIdsBySiteIdsAndChargeModels(@RequestParam("siteIds") List<Integer> siteIds ,@RequestParam("chargeModels") List<Integer> chargeModels){ |
| | | List<TChargingGun> list = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>() |
| | | .select(TChargingGun::getId).in(TChargingGun::getSiteId, siteIds) |
| | | .in(TChargingGun::getChargeMode, chargeModels)); |
| | | return R.ok(list.stream().map(TChargingGun::getId).collect(Collectors.toList())); |
| | | } |
| | | |
| | | } |
| | | |