| | |
| | | */ |
| | | @PostMapping("/getChargingGunByChargingPileId") |
| | | public R<List<TChargingGun>> getChargingGunByChargingPileId(@RequestParam("chargingPileId") Integer chargingPileId){ |
| | | List<TChargingGun> list = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getChargingPileId, chargingPileId).eq(TChargingGun::getDelFlag, 0)); |
| | | List<TChargingGun> list = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().eq(TChargingGun::getChargingPileId, chargingPileId) |
| | | .eq(TChargingGun::getDelFlag, 0)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据充电桩ids获取枪 |
| | | * @param chargingPileIds |
| | | * @return |
| | | */ |
| | | @PostMapping("/getChargingGunByChargingPileIds") |
| | | public R<List<TChargingGun>> getChargingGunByChargingPileIds(@RequestParam("chargingPileIds") List<Integer> chargingPileIds){ |
| | | List<TChargingGun> list = chargingGunService.list(new LambdaQueryWrapper<TChargingGun>().in(TChargingGun::getChargingPileId, chargingPileIds) |
| | | .eq(TChargingGun::getDelFlag, 0)); |
| | | return R.ok(list); |
| | | } |
| | | } |