|
@@ -3,7 +3,6 @@ package com.qmth.teachcloud.report.business.service.impl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.google.gson.Gson;
|
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
@@ -164,7 +163,7 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public Object surveyTeacherView(Long schoolId, SemesterEnum semester, Long examId, String courseCode) {
|
|
|
+ public SurveyTeacherViewResult surveyTeacherView(Long schoolId, SemesterEnum semester, Long examId, String courseCode) {
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
if (Objects.isNull(sysUser)) {
|
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
@@ -190,12 +189,7 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
List<TBPaperStructResult> questionDatasource = tbPaperStructService.findQuestionInfo(examId, courseCode);
|
|
|
//查找题目信息
|
|
|
QuestionListResult questionListResult = reportCommonService.findQuestionInfo(examId, courseCode, sysUser.getOrgId(), questionDatasource);
|
|
|
-
|
|
|
- Map<String, Object> map = new HashMap<>();
|
|
|
- map.put("gradeDistribution", surveyTeacherGradeDistributionResultList);
|
|
|
- map.put("questionList", questionListResult);
|
|
|
- map.put("surveyTeacher", surveyTeacherExamCourseResult);
|
|
|
- return map;
|
|
|
+ return new SurveyTeacherViewResult(surveyTeacherGradeDistributionResultList, questionListResult, surveyTeacherExamCourseResult);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -212,4 +206,26 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
|
public IPage<TAExamCourseCollegeTeacherResult> surveyTeacherTeacherView(IPage<Map> iPage, Long schoolId, SemesterEnum semester, Long examId, String courseCode) {
|
|
|
return taExamCourseMapper.surveyTeacherTeacherView(iPage, schoolId, semester.name(), examId, courseCode);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 开课课程考试总览-试题难度得分情况分析接口
|
|
|
+ *
|
|
|
+ * @param schoolId
|
|
|
+ * @param semester
|
|
|
+ * @param examId
|
|
|
+ * @param courseCode
|
|
|
+ * @param collegeId
|
|
|
+ * @param teacherId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Object surveyTeacherQuestionView(Long schoolId, SemesterEnum semester, Long examId, String courseCode, Long collegeId, Long teacherId) {
|
|
|
+ SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
+ if (Objects.isNull(sysUser)) {
|
|
|
+ throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
|
+ }
|
|
|
+ //学院学科报表维度查询-按学院
|
|
|
+ DimensionAnalyzeResult dimensionAnalyzeResult = reportCommonService.findDimensionInfo(examId, courseCode, Objects.isNull(collegeId) ? sysUser.getOrgId() : collegeId);
|
|
|
+ return dimensionAnalyzeResult;
|
|
|
+ }
|
|
|
}
|