Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public FeedbackResponse submitFeedback(FeedbackSubmitRequest request, Long userI
.ifPresent(feedbackDraftRepository::delete);

if (participation.isApproved()) {
participation.complete();
participation.completeTest();
participationRepository.save(participation);
log.info("피드백 제출로 인한 참여 완료 처리: participationId={}, status={}",
participation.getId(), participation.getStatus());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public void reject() {
this.approvedAt = LocalDateTime.now();
}

// 모집자가 테스터 피드백까지 받은 후 최종 완료 처리 상태
public void complete() {
this.status = ParticipationStatus.COMPLETED;
this.completedAt = LocalDateTime.now();
Expand Down Expand Up @@ -167,6 +168,7 @@ public boolean isPaid() {
return this.isPaid;
}

// 참여자의 테스트 참여 완료 처리 (피드백 제출)
public void completeTest() {
if (!isApproved()) {
throw new GeneralException(ErrorStatus.PARTICIPATION_NOT_APPROVED);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ public enum ParticipationStatus {
@Schema(description = "진행중")
APPROVED("진행중"),

// 참여자의 테스트 완료 (피드백 제출)
@Schema(description = "테스트 완료")
TEST_COMPLETED("테스트 완료"),

// 모집자가 확인 후 최종 테스트 완료 및 지급 대기 상태
@Schema(description = "지급 대기")
COMPLETED("지급 대기"),

Expand Down