|
@@ -229,9 +229,11 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud
|
|
|
//获取课程规划
|
|
|
MusicGroupTrainPlanSaveDto schoolTerm = musicGroupTrainPlanService.getSchoolTerm(courseSchedule);
|
|
|
int courseNumNo = courseScheduleDao.getCourseNumNo(schoolTerm);
|
|
|
- List<MusicGroupTrainPlan> planList = musicGroupTrainPlanService.queryPlan(schoolTerm);
|
|
|
- if(planList.size() >= courseNumNo){
|
|
|
- musicGroupTrainPlan = planList.get(courseNumNo - 1);
|
|
|
+ if(courseNumNo > 0){
|
|
|
+ List<MusicGroupTrainPlan> planList = musicGroupTrainPlanService.queryPlan(schoolTerm);
|
|
|
+ if(planList.size() >= courseNumNo){
|
|
|
+ musicGroupTrainPlan = planList.get(courseNumNo - 1);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
CourseHomeworkStudentDetailDto courseHomeworkStudentDetail = studentCourseHomeworkDao.findCourseHomeworkStudentDetail(courseScheduleID, userId);
|