[#59] feature: 배차 관련 추가 요구사항 구현 #60
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
관련 이슈
📌 작업 개요
주요 변경 사항
기사 배차 상태(dispatchStatus) 필드 추가
DispatchStatusenum 추가 (EMPTY, DISPATCH)Transporter엔티티에dispatchStatus필드 추가 (기본값: EMPTY)배차중인 기사의 중복 배차 방지
TRANSPORTER_ALREADY_DISPATCHED에러 반환현재 배차중인 오더 상세 정보 조회 API 추가
GET /api/v1/transporter/current-dispatch엔드포인트 구현CurrentDispatchDetailResDTO 추가 (이미지 참고하여 필요한 모든 필드 포함)기술적 구현
ResultCode에TRANSPORTER_ALREADY_DISPATCHED(3004) 추가DispatchRepository에findByTransporterIdAndStatus메서드 추가DispatcherService에getCurrentDispatch메서드 추가assignDispatch,cancelDispatch,completeDispatch메서드에 상태 관리 로직 추가✨ 기타 참고 사항
message필드로 에러 메시지 표시 가능✅ 체크리스트
application.yml파일을 수정했다면, Notion에 업로드, github security 수정 및 공유했어요.