main #10

Closed
student-20690 wants to merge 26 commits from (deleted):main into main
Showing only changes of commit 5e786c2701 - Show all commits

View File

@@ -70,7 +70,7 @@ public class BookingServiceImpl implements BookingService {
List<Place> allPlaces = placeRepository.findAll();
List<Booking> bookings = bookingRepository.findByDateIn(targetDates);
Map<LocalDate, List<Booking>> bookingsByDate = bookings.stream()
.collect(Collectors.groupingBy(Booking::getDate));
.collect(Collectors.groupingBy(Booking::getDate, Collectors.toList()));
Map<String, List<Booking.AvailablePlaceDto>> result = new LinkedHashMap<>(); // Используем LinkedHashMap для сохранения порядка
for (LocalDate date : targetDates) {