| | |
| | | package com.ruoyi.chargingPile.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.chargingPile.api.dto.TParkingLotDTO; |
| | | import com.ruoyi.chargingPile.api.model.TCarport; |
| | |
| | | BigDecimal sum = parkingRecordService.getSum(sixBefore); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据停车场标识查询停车场 |
| | | * @param appKey |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/getParkingLotByAppKey") |
| | | public R<TParkingLot> getParkingLotByAppKey(@RequestParam("appKey") String appKey){ |
| | | TParkingLot parkingLot = parkingLotService.getOne(new LambdaQueryWrapper<TParkingLot>() |
| | | .eq(TParkingLot::getAppKey, appKey).eq(TParkingLot::getDelFlag, 0)); |
| | | return R.ok(parkingLot); |
| | | } |
| | | } |
| | | |