Skip to content

Commit

Permalink
Merge pull request #260 from JNU-econovation/feature/BE-94
Browse files Browse the repository at this point in the history
[BE-95] 면접 기록 조회 응답에 지원자의 합/불 상태를 나타내는 state 필드 추가
  • Loading branch information
rlajm1203 authored Sep 17, 2024
2 parents 8e24db1 + 2aee92c commit 1f315a1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.econovation.recruit.api.record.dto;

import com.econovation.recruitdomain.domains.applicant.domain.MongoAnswer;
import com.econovation.recruitdomain.domains.applicant.domain.state.ApplicantState;
import com.econovation.recruitdomain.domains.record.domain.Record;
import lombok.AllArgsConstructor;
import lombok.Data;
Expand All @@ -18,6 +19,7 @@ public class RecordViewResponseDto {
private String grade;
private String semester;
private String modifiedAt;
private ApplicantState state;

public static RecordViewResponseDto from(Record recordVo, Double score, MongoAnswer applicant) {
String name =
Expand All @@ -35,6 +37,7 @@ public static RecordViewResponseDto from(Record recordVo, Double score, MongoAns
applicant.getQna().get("field2").toString(),
applicant.getQna().get("grade").toString(),
applicant.getQna().get("semester").toString(),
recordVo.getUpdatedAt().toString());
recordVo.getUpdatedAt().toString(),
applicant.getApplicantState());
}
}

0 comments on commit 1f315a1

Please sign in to comment.