Skip to content

Commit

Permalink
StudentWeekNumber = 6
Browse files Browse the repository at this point in the history
  • Loading branch information
dh28be committed Jun 27, 2024
1 parent 781d335 commit 9ce31d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/pro/hexa/unist/meal/Utils/ExcelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<String>> parse(Sheet worksheet) throws UnsupportedEncodingException {
Expand Down Expand Up @@ -53,13 +54,13 @@ public static List<List<String>> 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를 만든다.
Expand Down

0 comments on commit 9ce31d4

Please sign in to comment.