|
@@ -530,7 +530,7 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
public TeacherIndexWrapper.TeacherPracticeHome getTeacherPracticeHome(TeacherIndexWrapper.SummarySearch summarySearch) {
|
|
public TeacherIndexWrapper.TeacherPracticeHome getTeacherPracticeHome(TeacherIndexWrapper.SummarySearch summarySearch) {
|
|
TeacherIndexWrapper.TeacherPracticeHome teacherPracticeHome = new TeacherIndexWrapper.TeacherPracticeHome();
|
|
TeacherIndexWrapper.TeacherPracticeHome teacherPracticeHome = new TeacherIndexWrapper.TeacherPracticeHome();
|
|
//获取老师关联的学员
|
|
//获取老师关联的学员
|
|
- List<Long> studentIds = teacherService.getDao().getStudentIds(summarySearch);
|
|
|
|
|
|
+ List<Long> studentIds = teacherService.getDao().getStudentIds(summarySearch.getTeacherId(),summarySearch.getSubjectId());
|
|
if(CollectionUtils.isEmpty(studentIds)){
|
|
if(CollectionUtils.isEmpty(studentIds)){
|
|
return teacherPracticeHome;
|
|
return teacherPracticeHome;
|
|
}
|
|
}
|
|
@@ -561,15 +561,25 @@ public class SysMusicCompareRecordServiceImpl extends BaseServiceImpl<Long, SysM
|
|
}
|
|
}
|
|
}
|
|
}
|
|
teacherPracticeHome.setPracticeTimes(sysMusicCompareRecordDao.getStudentTrainTime(studentIds,summarySearch,groupBy));
|
|
teacherPracticeHome.setPracticeTimes(sysMusicCompareRecordDao.getStudentTrainTime(studentIds,summarySearch,groupBy));
|
|
-
|
|
|
|
//练习人数
|
|
//练习人数
|
|
-// teacherPracticeHome.setPracticeCounts(sysMusicCompareRecordDao.getStudentTrainCount(studentIds,summarySearch,groupBy));
|
|
|
|
|
|
+ teacherPracticeHome.setPracticeCounts(sysMusicCompareRecordDao.getStudentTrainCount(studentIds,summarySearch,groupBy));
|
|
|
|
|
|
return teacherPracticeHome;
|
|
return teacherPracticeHome;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<TeacherIndexWrapper.StudentPracticeSummaryDto> getTeacherHomeStudent(TeacherIndexWrapper.StudentSearch studentSearch) {
|
|
|
|
+ //获取老师关联的学员
|
|
|
|
+ List<Long> studentIds = teacherService.getDao().getStudentIds(studentSearch.getTeacherId(),studentSearch.getSubjectId());
|
|
|
|
+ if(CollectionUtils.isEmpty(studentIds)){
|
|
|
|
+ return Collections.emptyList();
|
|
|
|
+ }
|
|
|
|
+ //获取学员练习汇总
|
|
|
|
+ return sysMusicCompareRecordDao.getStudentTrainOverViewList(studentIds,studentSearch);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
- private String getExpireTime() {
|
|
|
|
|
|
+ private String getExpireTime() {
|
|
|
|
|
|
String homeworkExpireTime = sysConfigService.findConfigValue(SysConfigConstant.HOMEWORK_EXPIRE_TIME);
|
|
String homeworkExpireTime = sysConfigService.findConfigValue(SysConfigConstant.HOMEWORK_EXPIRE_TIME);
|
|
if (org.springframework.util.StringUtils.isEmpty(homeworkExpireTime)) {
|
|
if (org.springframework.util.StringUtils.isEmpty(homeworkExpireTime)) {
|