|
|
|
@ -91,11 +91,14 @@ public class StatisticalAnalysisService {
|
|
|
|
|
data.put("studentNum", studentList.size());
|
|
|
|
|
//学习通过率
|
|
|
|
|
List<TeacherOpenCourseScoreDashboard> scoreDashboards = teacherOpenCourseScoreDashboardDao.createLambdaQuery().andEq(TeacherOpenCourseScoreDashboard::getTeacherOpenCourseId, teacherOpenCourseId).select();
|
|
|
|
|
long count1 = scoreDashboards.stream().filter(v ->
|
|
|
|
|
"不及格".equals(v.getLastStatus()) || "E".equals(v.getLastStatus())).count();
|
|
|
|
|
long l = scoreDashboards.size() - count1;
|
|
|
|
|
|
|
|
|
|
data.put("passRate", NumberUtil.formatPercent(NumberUtil.div(l,scoreDashboards.size()), 0));
|
|
|
|
|
if (CollectionUtil.isNotEmpty(scoreDashboards)) {
|
|
|
|
|
long count1 = scoreDashboards.stream().filter(v ->
|
|
|
|
|
"不及格".equals(v.getLastStatus()) || "E".equals(v.getLastStatus())).count();
|
|
|
|
|
long l = scoreDashboards.size() - count1;
|
|
|
|
|
data.put("passRate", NumberUtil.formatPercent(NumberUtil.div(l,scoreDashboards.size()), 0));
|
|
|
|
|
}else {
|
|
|
|
|
data.put("passRate", "0%");
|
|
|
|
|
}
|
|
|
|
|
//授课视频
|
|
|
|
|
TeacherOpenCourseMergeCourseInfoQuery courseInfoQuery = new TeacherOpenCourseMergeCourseInfoQuery();
|
|
|
|
|
courseInfoQuery.setTeacherOpenCourseId(teacherOpenCourseId);
|
|
|
|
@ -337,11 +340,14 @@ public class StatisticalAnalysisService {
|
|
|
|
|
List<TeacherOpenCourseQuestionSettingPure> courseQuestionSettings = teacherOpenCourseQuestionSettingDao.getValuesByQueryNotWithPermission2(teacherOpenCourseQuestionSettingQuery);
|
|
|
|
|
List<Long> collect2 = courseQuestionSettings.stream()
|
|
|
|
|
.map(TeacherOpenCourseQuestionSettingPure::getTeacherOpenCourseQuestionSettingId).collect(Collectors.toList());
|
|
|
|
|
List<QuestionLogSummary> select1 = questionLogSummaryDao.createLambdaQuery()
|
|
|
|
|
.andIsNotNull(QuestionLogSummary::getQuestionLogSummaryStudentTotalScore)
|
|
|
|
|
.andIn(QuestionLogSummary::getQuestionSettingId, collect2)
|
|
|
|
|
.andEq(QuestionLogSummary::getQuestionLogSummaryStatus, 1)
|
|
|
|
|
.select();
|
|
|
|
|
List<QuestionLogSummary> select1 = new ArrayList<>();
|
|
|
|
|
if(CollectionUtil.isNotEmpty(collect2)) {
|
|
|
|
|
select1 = questionLogSummaryDao.createLambdaQuery()
|
|
|
|
|
.andIsNotNull(QuestionLogSummary::getQuestionLogSummaryStudentTotalScore)
|
|
|
|
|
.andIn(QuestionLogSummary::getQuestionSettingId, collect2)
|
|
|
|
|
.andEq(QuestionLogSummary::getQuestionLogSummaryStatus, 1)
|
|
|
|
|
.select();
|
|
|
|
|
}
|
|
|
|
|
//批改作业数
|
|
|
|
|
data.put("homeWorkNumber", select1.size());
|
|
|
|
|
//课程学习
|
|
|
|
|