Skip to content

Commit

Permalink
Merge pull request #174 from CEOS-Developers/fix/application_response
Browse files Browse the repository at this point in the history
[fix] 서류 결과 확인 response 생성 로직 수정
  • Loading branch information
mushroom1324 authored Feb 29, 2024
2 parents ff56df8 + a48ad60 commit 52b0651
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ out/

### application ###
application-secret.yml

###
.env**
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,17 @@ private GetResultResponse(

public static GetResultResponse toDocumentResult(
Application application, Recruitment recruitment) {
ParsedDuration duration = null;

if (application.getInterviewDatetime() != null) {
duration = ParsedDurationConvertor.parsingDuration(application.getInterviewDatetime());
}

return GetResultResponse.builder()
.pass(application.getDocumentPass())
.generation(recruitment.getGeneration())
.name(application.getApplicantInfo().getName())
.parsedDuration(
ParsedDurationConvertor.parsingDuration(application.getInterviewDatetime()))
.parsedDuration(duration)
.otDate(recruitment.getOtDate())
.attendanceStatus(application.isInterviewCheck())
.openChatUrl(recruitment.getOpenChatUrl())
Expand Down

0 comments on commit 52b0651

Please sign in to comment.