Skip to content

Commit

Permalink
Merge pull request #171 from kakao-tech-campus-2nd-step3/Weekly-10
Browse files Browse the repository at this point in the history
Weekly 10
  • Loading branch information
minsu-cnu authored Nov 13, 2024
2 parents a344a90 + bb3cac0 commit cf45225
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 cf45225

Please sign in to comment.