From f252a51946c6cc16cc4f02f0af9028708456aaad Mon Sep 17 00:00:00 2001 From: Jeonghyun Lee Date: Tue, 29 Aug 2023 11:58:45 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=97=91=EC=85=80=20=ED=97=A4=EB=8D=94?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/application/domain/ApplicationInterview.java | 1 + .../domain/application/helper/ApplicationExcelHelper.java | 8 ++++---- .../application/service/ApplicationExcelService.java | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/ceos/backend/domain/application/domain/ApplicationInterview.java b/src/main/java/ceos/backend/domain/application/domain/ApplicationInterview.java index 7496d63b..0d261ea2 100644 --- a/src/main/java/ceos/backend/domain/application/domain/ApplicationInterview.java +++ b/src/main/java/ceos/backend/domain/application/domain/ApplicationInterview.java @@ -9,6 +9,7 @@ @NoArgsConstructor(access = AccessLevel.PROTECTED) @Entity public class ApplicationInterview extends BaseEntity { + // 면접 불가능 시간이 저장됨 @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/src/main/java/ceos/backend/domain/application/helper/ApplicationExcelHelper.java b/src/main/java/ceos/backend/domain/application/helper/ApplicationExcelHelper.java index 6f49c589..623f1632 100644 --- a/src/main/java/ceos/backend/domain/application/helper/ApplicationExcelHelper.java +++ b/src/main/java/ceos/backend/domain/application/helper/ApplicationExcelHelper.java @@ -41,12 +41,12 @@ public Map getInterviewTimeMap() { return interviewTimeMap; } - public String getPossibleInterview( + public String getUnableInterview( Map interviewTimeMap, List 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; } } diff --git a/src/main/java/ceos/backend/domain/application/service/ApplicationExcelService.java b/src/main/java/ceos/backend/domain/application/service/ApplicationExcelService.java index 9afb5169..939655a2 100644 --- a/src/main/java/ceos/backend/domain/application/service/ApplicationExcelService.java +++ b/src/main/java/ceos/backend/domain/application/service/ApplicationExcelService.java @@ -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; @@ -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());