zouxuan il y a 3 ans
Parent
commit
2124bde19f

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

@@ -3789,11 +3789,12 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
         String groupEndTime = DateUtil.dateToString(practiceGroup.getCoursesExpireDate(), "yyyy年MM月dd日");
         String teacherName = teacher.getRealName();
         String drillTimesOnWeek = null;
+        String firstCourseStartTime = null;
         if(practiceGroup.getDrillTimesOnWeek() != null){
             drillTimesOnWeek = practiceGroup.getDrillTimesOnWeek().toString();
+            CourseSchedule firstCourseWithGroup = courseScheduleDao.findFirstCourseWithGroup(practiceGroup.getId().toString(), GroupType.PRACTICE);
+            firstCourseStartTime = DateUtil.dateToString(firstCourseWithGroup.getStartClassTime(), "yyyy年MM月dd日 HH时mm分");
         }
-        CourseSchedule firstCourseWithGroup = courseScheduleDao.findFirstCourseWithGroup(practiceGroup.getId().toString(), GroupType.PRACTICE);
-        String firstCourseStartTime = DateUtil.dateToString(firstCourseWithGroup.getStartClassTime(), "yyyy年MM月dd日 HH时mm分");
 
         try {
             if(drillTimesOnWeek != null){