generated from pricelees/issue-pr-template
refactor: 일정 만료 처리 배치에서 예약의 PAYMENT_IN_PROGRESS 상태 조건 추가
This commit is contained in:
parent
c76f6bba68
commit
60882bee85
@ -139,7 +139,7 @@ interface ScheduleRepository : JpaRepository<ScheduleEntity, Long> {
|
||||
AND NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM reservation r
|
||||
WHERE r.schedule_id = s.id AND r.status = 'PENDING'
|
||||
WHERE r.schedule_id = s.id AND (r.status = 'PENDING' OR r.status = 'PAYMENT_IN_PROGRESS')
|
||||
)
|
||||
FOR UPDATE SKIP LOCKED
|
||||
""", nativeQuery = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user