|
@@ -16,6 +16,7 @@ import com.qmth.teachcloud.report.business.mapper.TAExamCourseCollegeTeacherMapp
|
|
|
import com.qmth.teachcloud.report.business.service.ReportCommonService;
|
|
|
import com.qmth.teachcloud.report.business.service.TAExamCourseCollegeInspectService;
|
|
|
import com.qmth.teachcloud.report.business.service.TAExamCourseCollegeTeacherService;
|
|
|
+import com.qmth.teachcloud.report.business.service.TAExamCourseRecordService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -46,6 +47,9 @@ public class TAExamCourseCollegeTeacherServiceImpl extends ServiceImpl<TAExamCou
|
|
|
@Resource
|
|
|
TAExamCourseCollegeInspectService taExamCourseCollegeInspectService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ TAExamCourseRecordService taExamCourseRecordService;
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<TeacherClassRankResult> listClassRank(SemesterEnum semester, Long examId, String courseCode, Long inspectCollegeId, Integer pageNumber, Integer pageSize, String column, OrderEnum order) {
|
|
|
Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
@@ -120,14 +124,21 @@ public class TAExamCourseCollegeTeacherServiceImpl extends ServiceImpl<TAExamCou
|
|
|
// 考试概况
|
|
|
TAExamCourseCollegeInspectResult taExamCourseCollegeInspectResult = taExamCourseCollegeInspectService.findTeacherInspect(sysUser.getSchoolId(), semester, examId, courseCode, inspectCollegeId);
|
|
|
TeachCourseResult teachCourseResultFinal = new TeachCourseResult(taExamCourseCollegeInspectResult);
|
|
|
- TeachCourseResult teachCourseResult = null;
|
|
|
- // 考试概况
|
|
|
-// TeachCourseSurveyResult teachCourseSurveyResult = reportCommonService.getTeachCourseSurveyInfo(semester, examId, courseCode);
|
|
|
+ List<TeachCourseResult> teachCourseResultList = taExamCourseRecordService.findTeacherInspect(sysUser.getSchoolId(), semester, examId, courseCode, inspectCollegeId, sysUser.getId());
|
|
|
+ if (Objects.nonNull(teachCourseResultList) && teachCourseResultList.size() > 0) {
|
|
|
+ for (TeachCourseResult t : teachCourseResultList) {
|
|
|
+ if (t.getAbsent()) {
|
|
|
+ teachCourseResultFinal.setCourseRealityCount(t.getAbsentCount());
|
|
|
+ } else if (!t.getAbsent()) {
|
|
|
+ teachCourseResultFinal.setCourseAbsentCount(t.getAbsentCount());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
//取总体和应届平均分
|
|
|
SurveyTeacherExamCourseResult surveyTeacherExamCourseResult = reportCommonService.findAvgScore(schoolId, courseCode, examId, false);
|
|
|
//查找题目信息
|
|
|
QuestionListResult questionListResult = reportCommonService.findQuestionInfo(examId, courseCode, inspectCollegeId);
|
|
|
- return new SurveyTeacherViewResult(teachCourseResult, questionListResult, surveyTeacherExamCourseResult);
|
|
|
+ return new SurveyTeacherViewResult(teachCourseResultFinal, questionListResult, surveyTeacherExamCourseResult);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -141,7 +152,7 @@ public class TAExamCourseCollegeTeacherServiceImpl extends ServiceImpl<TAExamCou
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public DimensionAnalyzeResult teacherQuestionView(Long schoolId, SemesterEnum semester, Long examId, String courseCode, Long collegeId,Long teacherId) {
|
|
|
+ public DimensionAnalyzeResult teacherQuestionView(Long schoolId, SemesterEnum semester, Long examId, String courseCode, Long collegeId, Long teacherId) {
|
|
|
return reportCommonService.findDimensionInfo(examId, courseCode, collegeId, teacherId);
|
|
|
}
|
|
|
|