| | |
| | | s2 = query.getTimePeriod().split(" - ")[1]; |
| | | } |
| | | Page<TParkingRecord> page = parkingRecordService.lambdaQuery() |
| | | .in(TParkingRecord::getParkingLotId,ids) |
| | | .in(null != ids && ids.size() > 0, TParkingRecord::getParkingLotId,ids) |
| | | .like(query.getLicensePlate() != null, TParkingRecord::getLicensePlate, query.getLicensePlate()) |
| | | .eq(query.getStatus() != null, TParkingRecord::getStatus, query.getStatus()) |
| | | .eq(query.getOutParkingType() != null, TParkingRecord::getOutParkingType, query.getOutParkingType()) |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据充电订单id获取数据 |
| | | * @return |
| | | */ |
| | | @PostMapping("/getParkingRecordByChargingOrderId") |
| | | public R<TParkingRecord> getParkingRecordByChargingOrderId(@RequestParam("chargingOrderId") Long chargingOrderId){ |
| | | TParkingRecord parkingRecord = parkingRecordService.getOne(new LambdaQueryWrapper<TParkingRecord>() |
| | | .eq(TParkingRecord::getChargingOrderId, chargingOrderId)); |
| | | return R.ok(parkingRecord); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * @param parkingRecord |