From 9ce31d4a08e4c24766c50694a129e80f309d0384 Mon Sep 17 00:00:00 2001 From: dh28be Date: Fri, 28 Jun 2024 03:57:04 +0900 Subject: [PATCH] StudentWeekNumber = 6 --- src/main/java/pro/hexa/unist/meal/Utils/ExcelUtils.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/pro/hexa/unist/meal/Utils/ExcelUtils.java b/src/main/java/pro/hexa/unist/meal/Utils/ExcelUtils.java index 82673a4..c096d97 100644 --- a/src/main/java/pro/hexa/unist/meal/Utils/ExcelUtils.java +++ b/src/main/java/pro/hexa/unist/meal/Utils/ExcelUtils.java @@ -25,7 +25,8 @@ public final class ExcelUtils { private static final int RestaurantTypeCol = 1; private static int weekNumber = 5; - private static final int DormitoryAndStudentWeekNumber = 7; + private static final int DormitoryWeekNumber = 7; + private static final int StudentWeekNumber = 6; public static List> parse(Sheet worksheet) throws UnsupportedEncodingException { @@ -53,13 +54,13 @@ public static List> parse(Sheet worksheet) throws UnsupportedEncodi startRowNum = StudentStartRow; // 학생 식당 => day 5개 colList = new ArrayList<>(Arrays.asList(DayType.MON.getColNum(), DayType.TUE.getColNum(), DayType.WED.getColNum() , DayType.THU.getColNum(), DayType.FRI.getColNum())); - weekNumber = DormitoryAndStudentWeekNumber; + weekNumber = StudentWeekNumber; } else { // 기숙사 식당 startRowNum = DormitoryAndProfessorStartRow; // 기숙사 식당 => day 7개 colList = new ArrayList<>(Arrays.asList(DayType.MON.getColNum(), DayType.TUE.getColNum(), DayType.WED.getColNum() , DayType.THU.getColNum(), DayType.FRI.getColNum(), DayType.SAT.getColNum(), DayType.SUN.getColNum())); - weekNumber = DormitoryAndStudentWeekNumber; + weekNumber = DormitoryWeekNumber; } // 일주일 == 7 days를 만든다.