|
@@ -712,8 +712,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
public List<ImGroupModel> queryUserGroups(Integer userId, String search) {
|
|
|
List<ImGroupModel> imGroupModels = classGroupDao.queryUserMusicGroups(userId, search);
|
|
|
imGroupModels.addAll(classGroupDao.queryUserVipGroups(userId, search));
|
|
|
+ imGroupModels.addAll(classGroupDao.queryUserPracticeGroups(userId, search));
|
|
|
imGroupModels.addAll(classGroupDao.queryUserCommGroups(userId, search));
|
|
|
-
|
|
|
if (imGroupModels != null && imGroupModels.size() > 0) {
|
|
|
imGroupModels.forEach(e -> {
|
|
|
e.setCount(classGroupService.findGroupUsers(Integer.parseInt(e.getId())).size());
|
|
@@ -1068,9 +1068,16 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
reportMap = courseScheduleEvaluates.stream().collect(Collectors.groupingBy(CourseScheduleEvaluate::getClassGroupId));
|
|
|
}
|
|
|
if(reportMap.containsKey(teacherClassGroupDto.getClassGroupId().intValue())){
|
|
|
+ List<CourseScheduleEvaluate> evaluates = reportMap.get(teacherClassGroupDto.getClassGroupId().intValue());
|
|
|
+ CourseScheduleEvaluate courseScheduleEvaluate = evaluates.get(evaluates.size() - 1);
|
|
|
teacherClassGroupDto.setHasReport(true);
|
|
|
String studyReportUrl = sysConfigDao.findConfigValue(SysConfigService.STUDENT_STUDY_REPORT_URL);
|
|
|
- teacherClassGroupDto.setStudyReportUrl(studyReportUrl+teacherClassGroupDto.getClassGroupId());
|
|
|
+ if(courseScheduleEvaluate.getVersion().equals(2)){
|
|
|
+ String teacherBaseUrl = sysConfigDao.findConfigValue(SysConfigService.TEACHER_BASE_URL);
|
|
|
+ teacherClassGroupDto.setStudyReportUrl(teacherBaseUrl + "/#/studyReportNew?id=" + courseScheduleEvaluate.getId() + "&classGroupId=" + courseScheduleEvaluate.getClassGroupId());
|
|
|
+ }else {
|
|
|
+ teacherClassGroupDto.setStudyReportUrl(studyReportUrl + teacherClassGroupDto.getClassGroupId());
|
|
|
+ }
|
|
|
}else if(classGroupNoStartClassTimes.intValue()==0 && classGroupTeacherMap.get(teacherClassGroupDto.getClassGroupId().intValue()).equals(user.getId())){
|
|
|
String studyReportUrl = sysConfigDao.findConfigValue(SysConfigService.TEACHER_STUDY_REPORT_URL);
|
|
|
teacherClassGroupDto.setStudyReportUrl(studyReportUrl+teacherClassGroupDto.getClassGroupId());
|