Skip to content

Commit

Permalink
Merge pull request #93 from Bamdoliro/perf/#92
Browse files Browse the repository at this point in the history
[개선] 원서 조회, 원서 상세 조회 수정
  • Loading branch information
jyj1289 authored Jul 6, 2024
2 parents ac1949c + 07576ad commit 3034f17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
public class FormResponse {

private Long id;
private Long examinationNumber;
private ApplicantResponse applicant;
private ParentResponse parent;
private EducationResponse education;
Expand All @@ -22,6 +23,7 @@ public class FormResponse {

public FormResponse(Form form) {
this.id = form.getId();
this.examinationNumber = form.getExaminationNumber();
this.applicant = new ApplicantResponse(form.getApplicant());
this.parent = new ParentResponse(form.getParent());
this.education = new EducationResponse(form.getEducation());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
public class FormSimpleResponse {

private Long id;
private Long examinationNumber;
private String name;
private LocalDate birthday;
private GraduationType graduationType;
Expand All @@ -28,6 +29,7 @@ public class FormSimpleResponse {

public FormSimpleResponse(Form form) {
this.id = form.getId();
this.examinationNumber = form.getExaminationNumber();
this.name = form.getApplicant().getName();
this.birthday = form.getApplicant().getBirthday();
this.graduationType = form.getEducation().getGraduationType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ public static FormSimpleResponse createFormSimpleResponse(FormStatus status) {
public static FormResponse createFormResponse() {
return new FormResponse(
1L,
2001L,
new ApplicantResponse(
"https://maru.com/photo.png",
"김밤돌",
Expand Down

0 comments on commit 3034f17

Please sign in to comment.