|
@@ -49,6 +49,9 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
@Resource
|
|
@Resource
|
|
TBPaperService tbPaperService;
|
|
TBPaperService tbPaperService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TAExamCourseService taExamCourseService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 开课课程考试总览列表接口
|
|
* 开课课程考试总览列表接口
|
|
*
|
|
*
|
|
@@ -60,7 +63,9 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public IPage<TAExamCourseResult> surveyTeacherList(IPage<Map> iPage, Long examId, SemesterEnum semester, Long schoolId) {
|
|
public IPage<TAExamCourseResult> surveyTeacherList(IPage<Map> iPage, Long examId, SemesterEnum semester, Long schoolId) {
|
|
- return taExamCourseMapper.surveyTeacherList(iPage, examId, Objects.nonNull(semester) ? semester.name() : null, schoolId);
|
|
|
|
|
|
+ SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
|
+ Long collegeId = sysUser.getOrgId();
|
|
|
|
+ return taExamCourseMapper.surveyTeacherList(iPage, examId, Objects.nonNull(semester) ? semester.name() : null, schoolId,collegeId);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -159,6 +164,9 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
if (Objects.isNull(sysUser)) {
|
|
if (Objects.isNull(sysUser)) {
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
}
|
|
}
|
|
|
|
+ // 开课课程考试概况
|
|
|
|
+ ExamCourseResult examCourseResult = taExamCourseService.getOverview(semester,examId,courseCode);
|
|
|
|
+
|
|
//取总体和应届平均分
|
|
//取总体和应届平均分
|
|
SurveyTeacherExamCourseResult surveyTeacherExamCourseResult = reportCommonService.findAvgScore(schoolId, courseCode, examId);
|
|
SurveyTeacherExamCourseResult surveyTeacherExamCourseResult = reportCommonService.findAvgScore(schoolId, courseCode, examId);
|
|
|
|
|
|
@@ -301,4 +309,10 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
|
|
|
return trialCalculationResult;
|
|
return trialCalculationResult;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// @Override
|
|
|
|
+// public TeachCourseSurveyResult getTeachCourseSurveyInfo(SemesterEnum semester, Long examId, String courseCode) {
|
|
|
|
+// Long schoolId = Long.valueOf(ServletUtil.getRequestHeaderSchoolId().toString());
|
|
|
|
+// return taExamCourseMapper.getOverview(schoolId, Objects.nonNull(semester) ? semester.name() : null, examId, courseCode);
|
|
|
|
+// }
|
|
}
|
|
}
|