Skip to content

Comments

[Refactor, Feat] Requestion Status 수정 및 스케줄러 등록#455

Merged
Kim-Dongdong merged 3 commits intodevelopfrom
refactor/requestions
Feb 7, 2026
Merged

[Refactor, Feat] Requestion Status 수정 및 스케줄러 등록#455
Kim-Dongdong merged 3 commits intodevelopfrom
refactor/requestions

Conversation

@Kim-Dongdong
Copy link
Contributor

PR 제목

  • [Refactor] RequestStatus에 WAITING/CLOSED 추가 및 요청서 만료 필드 정의
  • [Refactor] 요청서 상태 흐름에 WAITING 단계 도입 및 만료 체크 적용
  • [Feat] 만료된 요청서 자동 CLOSED 처리 스케줄러 추가

변경 사항

  • RequestStatus - WAITING, CLOSED enum 추가
  • Requestions.java - expiredAt 필드, extendExpiredAt(), isExpired() 추가
  • ErrorStatus.java - REQUESTION_EXPIRED 에러코드 추가
  • RequestionServiceImpl.java - 생성 시 초기 status WAITING, expiredAt 설정, 삭제 조건 수정
  • SuggestionServiceImpl.java - 제안서 등록 시 WAITING → MATCHING 전환 + expiredAt 연장
  • MatchingServiceImpl.java - 매칭 시 WAITING 허용, 만료 체크, 취소 시 상태 복원 로직 개선
  • GrabptApplication.java - @EnableScheduling 추가
  • RequestionScheduler.java - 매일 자정 만료 요청서 CLOSED 처리 (신규)
  • RequestionRepository.java - bulkUpdateExpiredRequestions 벌크 업데이트 쿼리 추가

작업 내용 체크

  • 기능 동작 확인

@Kim-Dongdong Kim-Dongdong merged commit f29412e into develop Feb 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant