Skip to content

Commit

Permalink
Merge pull request #137 from UnivApp/feature/refactor21
Browse files Browse the repository at this point in the history
feat: 평균 경쟁률 반영
  • Loading branch information
nyeroni authored Oct 10, 2024
2 parents 0eb3f95 + 5ff337b commit 0651de9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ public class CompetitionRate {

private Double earlyAdmissionRate;
private Double regularAdmissionRate;
private Double AverageAdmissionRate;
private String competitionYear;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
public class CompetitionRateResponse {
private Double earlyAdmissionRate;
private Double regularAdmissionRate;
private Double AverageAdmissionRate;

private String year;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private CompetitionRateResponse convertToDto(CompetitionRate competitionRate) {
return new CompetitionRateResponse(
competitionRate.getEarlyAdmissionRate(),
competitionRate.getRegularAdmissionRate(),
competitionRate.getAverageAdmissionRate(),
competitionRate.getCompetitionYear()
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private UniversityAllResponse convertToDetailDto(University university) {
List<Department> departments = departmentRepository.findByUniversity(university);

List<CompetitionRateResponse> competitionRateResponses = competitionRates.stream()
.map(rate -> new CompetitionRateResponse(rate.getEarlyAdmissionRate(), rate.getRegularAdmissionRate(), rate.getCompetitionYear()))
.map(rate -> new CompetitionRateResponse(rate.getEarlyAdmissionRate(), rate.getRegularAdmissionRate(), rate.getAverageAdmissionRate(), rate.getCompetitionYear()))
.collect(Collectors.toList());

List<EmploymentRateResponse> employmentRateResponses = employmentRates.stream()
Expand Down

0 comments on commit 0651de9

Please sign in to comment.