Skip to content

Commit

Permalink
Merge pull request #170 from kakao-tech-campus-2nd-step3/Contract-10-…
Browse files Browse the repository at this point in the history
…rebase-again

[근로계약서] 고용주 작성 시 지원 상태 변경
  • Loading branch information
minsu-cnu authored Nov 13, 2024
2 parents de2c28a + c2f630d commit bb3cac0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ public void createContract(ContractRequest request, String pdfUrl, String pdfUrl
Apply apply = applyRepository.findById(request.applyId())
.orElseThrow(() -> new NotFoundException("해당 applyId가 존재하지 않습니다."));

// 근로계약서 작성하기로 지원 상태 변경
ApplyStatus status = ApplyStatus.SIGNING_EMPLOYMENT_CONTRACT;
applyRepository.save(
new Apply(apply.getId(), status.getKoreanName(), apply.getUser(), apply.getRecruitment()));

contractRepository.save(
Contract.builder()
.salary(request.salary())
Expand Down

0 comments on commit bb3cac0

Please sign in to comment.