Ver código fonte

报名更新用户信息

周箭河 5 anos atrás
pai
commit
607490d843

+ 3 - 3
mec-biz/src/main/java/com/ym/mec/biz/service/impl/ClassGroupServiceImpl.java

@@ -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;
     }