📅  最后修改于: 2022-03-11 14:52:18.555000             🧑  作者: Mango
return dataSource.getParkingLots()
.stream()
.filter(parkingLot -> Objects.equals(parkingLot.getId(), id))
.findFirst()
.orElse(null);