| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.chargingPile.api.model.TChargingGun; |
| | | import com.ruoyi.chargingPile.api.model.TChargingPile; |
| | | import com.ruoyi.chargingPile.api.query.TChargingGunQuery; |
| | | import com.ruoyi.chargingPile.api.vo.TChargingGunVO; |
| | |
| | | public class TChargingPileController { |
| | | |
| | | private final TChargingPileService chargingPileService; |
| | | private final TChargingGunService chargingGunService; |
| | | |
| | | |
| | | @Autowired |
| | | public TChargingPileController(TChargingPileService chargingPileService) { |
| | | public TChargingPileController(TChargingPileService chargingPileService, TChargingGunService chargingGunService) { |
| | | this.chargingPileService = chargingPileService; |
| | | this.chargingGunService = chargingGunService; |
| | | } |
| | | |
| | | /** |
| | | * 查询充电桩列表 |
| | | */ |
| | | @ApiOperation(tags = {"小程序-充电桩"},value = "查询充电桩列表") |
| | | @ApiOperation(tags = {"小程序-充电桩"},value = "通过站点id查询充电桩列表") |
| | | @PostMapping(value = "/list") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "siteId", value = "站点id") |
| | |
| | | .eq(TChargingPile::getSiteId,siteId))); |
| | | } |
| | | /** |
| | | * 查询充电桩列表 |
| | | */ |
| | | @ApiOperation(tags = {"通过充电桩id 查询充电枪列表"},value = "通过充电桩id 查询充电枪列表") |
| | | @PostMapping(value = "/pileList") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "pileId", value = "充电桩id") |
| | | }) |
| | | public AjaxResult<List<TChargingGun>> pileList(@RequestParam("pileId") Integer pileId) { |
| | | return AjaxResult.ok(chargingGunService.list(Wrappers.lambdaQuery(TChargingGun.class) |
| | | .eq(TChargingGun::getChargingPileId,pileId))); |
| | | } |
| | | /** |
| | | * 管理后台-通过站点id获取充电桩列表 不分页 |
| | | */ |
| | | @ApiOperation(value = "管理后台-通过站点id获取充电桩列表 不分页") |