generated from pricelees/issue-pr-template
[#16] Reservation 도메인 코드 코틀린 마이그레이션 #17
@ -27,14 +27,11 @@ interface ReservationRepository
|
|||||||
|
|
||||||
@Query("""
|
@Query("""
|
||||||
SELECT EXISTS (
|
SELECT EXISTS (
|
||||||
SELECT 1 FROM ReservationEntity r
|
SELECT 1
|
||||||
WHERE r.theme.id = r2.theme.id
|
FROM ReservationEntity r
|
||||||
AND r.reservationTime.id = r2.reservationTime.id
|
WHERE r.id = :id
|
||||||
AND r.date = r2.date
|
AND r.reservationStatus != 'WAITING'
|
||||||
AND r.reservationStatus != 'WAITING'
|
|
||||||
)
|
)
|
||||||
FROM ReservationEntity r2
|
|
||||||
WHERE r2.id = :id
|
|
||||||
""")
|
""")
|
||||||
fun isExistConfirmedReservation(@Param("id") reservationId: Long): Boolean
|
fun isExistConfirmedReservation(@Param("id") reservationId: Long): Boolean
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user