|
@@ -1681,9 +1681,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
calendar.setTime(courseSchedule.getClassDate());
|
|
|
- int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);
|
|
|
- highClassGroup.setDayOfWeek(dayOfWeek - 1);
|
|
|
-
|
|
|
+ Integer dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK)-1;
|
|
|
+ dayOfWeek =dayOfWeek.equals(0) ? 7 :dayOfWeek;
|
|
|
+ highClassGroup.setDayOfWeek(dayOfWeek);
|
|
|
}
|
|
|
return highClassGroupList;
|
|
|
}
|