Skip to content

Commit

Permalink
[merge] 신청자 승인 시 상태값 변경 로직 리팩토링
Browse files Browse the repository at this point in the history
[refactor] 신청자 승인 시 상태값 변경 로직 리팩토링
  • Loading branch information
lreowy authored Aug 12, 2024
2 parents 089dbe6 + 6c5aba6 commit f46e58a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ public void updateSubmissionState(Long moimId, List<Long> submitterIdList) {
.equals(MoimSubmissionState.PENDING_APPROVAL.getMoimSubmissionState())) {
moimSubmission.updateMoimSubmissionState(MoimSubmissionState.APPROVED.getMoimSubmissionState());
}
} else {
}

//승인 이후에 승인 대기(pendingApproval)인 요청에 대해 승인 거절(rejected)상태로 변경
if (moimSubmission.getMoimSubmissionState()
.equals(MoimSubmissionState.PENDING_APPROVAL.getMoimSubmissionState())) {
moimSubmission.updateMoimSubmissionState(MoimSubmissionState.REJECTED.getMoimSubmissionState());
}
moimSubmissionRepository.save(moimSubmission);
Expand Down

0 comments on commit f46e58a

Please sign in to comment.