Skip to content

Commit

Permalink
[fix] 엑셀 헤더 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunihs committed Aug 29, 2023
1 parent 0918a1f commit f252a51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
public class ApplicationInterview extends BaseEntity {
// 면접 불가능 시간이 저장됨

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public Map<Long, String> getInterviewTimeMap() {
return interviewTimeMap;
}

public String getPossibleInterview(
public String getUnableInterview(
Map<Long, String> interviewTimeMap, List<ApplicationInterview> applicationInterviews) {
String possibleInterview = "";
String unableInterview = "";
for (ApplicationInterview interview : applicationInterviews) {
possibleInterview += interviewTimeMap.get(interview.getInterview().getId()) + "\n";
unableInterview += interviewTimeMap.get(interview.getInterview().getId()) + "\n";
}
return possibleInterview;
return unableInterview;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void createApplicationExcelFile() throws IOException {
applicationExcelHelper.getQuestionIndexMap(headers, questionList);

// Header
headers.addAll(List.of("면접 가능한 시간", "서류 합격 여부", "면접 시간"));
headers.addAll(List.of("면접 불가능 시간", "서류 합격 여부", "면접 시간"));

int colIndex = 0;
int rowIndex = 0;
Expand Down Expand Up @@ -155,8 +155,8 @@ public void createApplicationExcelFile() throws IOException {

row.createCell(colIndex++)
.setCellValue(
applicationExcelHelper.getPossibleInterview(
interviewTimeMap, applicationInterviews)); // 면접 가능한 시간
applicationExcelHelper.getUnableInterview(
interviewTimeMap, applicationInterviews)); // 면접 불가능 시간
row.createCell(colIndex++).setCellValue(application.getDocumentPass().getResult());
row.createCell(colIndex++).setCellValue(application.getInterviewDatetime());

Expand Down

0 comments on commit f252a51

Please sign in to comment.