diff --git a/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/dto/response/SearchApplicationResDto.java b/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/dto/response/SearchApplicationResDto.java index 7f034cc5..481f9d25 100644 --- a/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/dto/response/SearchApplicationResDto.java +++ b/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/dto/response/SearchApplicationResDto.java @@ -17,6 +17,7 @@ public record SearchApplicationResDto( String teacherPhoneNumber, EvaluationStatus firstEvaluation, EvaluationStatus secondEvaluation, + Long registrationNumber, BigDecimal secondScore ){ diff --git a/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/mapper/ApplicationMapper.java b/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/mapper/ApplicationMapper.java index 171e55b0..fb611561 100644 --- a/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/mapper/ApplicationMapper.java +++ b/hellogsm-web/src/main/java/team/themoment/hellogsm/web/domain/application/mapper/ApplicationMapper.java @@ -364,6 +364,7 @@ default Application updateApplicationByApplicationReqDtoAndApplication(Applicati @Mapping(source = "admissionInfo.teacherPhoneNumber", target = "teacherPhoneNumber"), @Mapping(source = "admissionStatus.firstEvaluation", target = "firstEvaluation"), @Mapping(source = "admissionStatus.secondEvaluation", target = "secondEvaluation"), + @Mapping(source = "admissionStatus.registrationNumber", target = "registrationNumber"), @Mapping(source = "admissionStatus.secondScore", target = "secondScore"), }) SearchApplicationResDto applicationToSearchApplicationResDto(Application application); diff --git a/hellogsm-web/src/test/java/team/themoment/hellogsm/web/domain/application/controller/ApplicationControllerTest.java b/hellogsm-web/src/test/java/team/themoment/hellogsm/web/domain/application/controller/ApplicationControllerTest.java index 991ac523..7d9db3f5 100644 --- a/hellogsm-web/src/test/java/team/themoment/hellogsm/web/domain/application/controller/ApplicationControllerTest.java +++ b/hellogsm-web/src/test/java/team/themoment/hellogsm/web/domain/application/controller/ApplicationControllerTest.java @@ -586,6 +586,7 @@ void search() throws Exception { "01012341234", EvaluationStatus.PASS, EvaluationStatus.NOT_YET, + 2002L, BigDecimal.valueOf(100) )) ); @@ -614,6 +615,7 @@ void search() throws Exception { .andExpect(jsonPath("$.applications[0].guardianPhoneNumber").value(searchApplicationsResDto.applications().get(0).guardianPhoneNumber())) .andExpect(jsonPath("$.applications[0].firstEvaluation").value(searchApplicationsResDto.applications().get(0).firstEvaluation().name())) .andExpect(jsonPath("$.applications[0].secondEvaluation").value(searchApplicationsResDto.applications().get(0).secondEvaluation().name())) + .andExpect(jsonPath("$.applications[0].registrationNumber").value(searchApplicationsResDto.applications().get(0).registrationNumber())) .andExpect(jsonPath("$.applications[0].secondScore").value(searchApplicationsResDto.applications().get(0).secondScore())) .andDo(this.documentationHandler.document( queryParameters( @@ -637,6 +639,7 @@ void search() throws Exception { fieldWithPath("applications[].teacherPhoneNumber").type(STRING).description("선생님 전화번호"), fieldWithPath("applications[].firstEvaluation").type(enumAsString(EvaluationStatus.class)).description("1차 평가 결과"), fieldWithPath("applications[].secondEvaluation").type(enumAsString(EvaluationStatus.class)).description("2차 평가 결과"), + fieldWithPath("applications[].registrationNumber").type(enumAsString(EvaluationStatus.class)).description("접수번호"), fieldWithPath("applications[].secondScore").type(NUMBER).description("2차 시험 점수") ) ));