|
@@ -615,9 +615,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if(classGroupIds.size() > 0){
|
|
|
courseScheduleEvaluates = courseScheduleEvaluateDao.findByClassGroupIds(classGroupIds);
|
|
|
}
|
|
|
- Map<Integer, Long> reportMap = new HashMap<>();
|
|
|
+ Map<Integer, List<CourseScheduleEvaluate>> reportMap = new HashMap<>();
|
|
|
if(courseScheduleEvaluates.size()>0) {
|
|
|
- reportMap = courseScheduleEvaluates.stream().collect(Collectors.toMap(CourseScheduleEvaluate::getClassGroupId, CourseScheduleEvaluate::getId));
|
|
|
+ reportMap = courseScheduleEvaluates.stream().collect(Collectors.groupingBy(CourseScheduleEvaluate::getClassGroupId));
|
|
|
}
|
|
|
|
|
|
Set<String> musicGroupId = musicCourse.stream().map(e -> e.getMusicId()).collect(Collectors.toSet());
|
|
@@ -673,7 +673,7 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if(ClassGroupTypeEnum.PRACTICE == e.getType()){
|
|
|
e.setStudentNames(practiceStuNames.get(e.getPracticeId()));
|
|
|
e.setPracticeRenewUrl(practiceRenewUrlConfig.getParanValue() + e.getPracticeId());
|
|
|
- if(reportMap.containsKey(e.getClassGroupId()) && (new Date()).compareTo(DateUtil.stringToDate("2020-03-01 12:18:00"))>=0){
|
|
|
+ if(reportMap.containsKey(e.getClassGroupId())){
|
|
|
e.setHasReport(true);
|
|
|
String baseUrl = sysConfigDao.findConfigValue(SysConfigService.BASE_API_URL);
|
|
|
e.setStudyReportUrl(baseUrl + "/#/reportDetail?classGroupId=" + e.getClassGroupId());
|