|
@@ -1004,7 +1004,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
//剩余课程为显示陪练报告入口rul
|
|
|
if(teacherClassGroupDto.getType() == ClassGroupTypeEnum.PRACTICE){
|
|
|
List<CourseScheduleEvaluate> courseScheduleEvaluates = courseScheduleEvaluateDao.findByClassGroupIds(classGroupIds);
|
|
|
- Map<Integer, Long> reportMap = courseScheduleEvaluates.stream().collect(Collectors.toMap(CourseScheduleEvaluate::getClassGroupId, CourseScheduleEvaluate::getId));
|
|
|
+ Map<Integer, Long> reportMap = new HashMap<>();
|
|
|
+ if(courseScheduleEvaluates.size() >0 ) {
|
|
|
+ reportMap = courseScheduleEvaluates.stream().collect(Collectors.toMap(CourseScheduleEvaluate::getClassGroupId, CourseScheduleEvaluate::getId));
|
|
|
+ }
|
|
|
if(reportMap.containsKey(teacherClassGroupDto.getClassGroupId().intValue())){
|
|
|
teacherClassGroupDto.setHasReport(true);
|
|
|
String studyReportUrl = sysConfigDao.findConfigValue(SysConfigService.STUDENT_STUDY_REPORT_URL);
|