Add bookings list endpoint with status filter
Some checks failed
build-and-deploy / build-deploy (push) Failing after 29s

This commit is contained in:
androidlover5842
2026-01-29 09:48:15 +05:30
parent 5705253481
commit 22b996cdf2
3 changed files with 72 additions and 0 deletions

View File

@@ -8,4 +8,6 @@ interface BookingRepo : JpaRepository<Booking, UUID> {
fun findByPropertyIdAndSourceBookingId(propertyId: UUID, sourceBookingId: String): Booking?
fun existsByPropertyIdAndSourceBookingId(propertyId: UUID, sourceBookingId: String): Boolean
fun countByPrimaryGuestId(guestId: UUID): Long
fun findByPropertyIdAndStatusInOrderByCreatedAtDesc(propertyId: UUID, status: Collection<com.android.trisolarisserver.models.booking.BookingStatus>): List<Booking>
fun findByPropertyIdOrderByCreatedAtDesc(propertyId: UUID): List<Booking>
}