|
@@ -1,16 +1,19 @@
|
|
package com.qmth.teachcloud.report.business.service.impl;
|
|
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.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
|
|
+import com.qmth.teachcloud.report.business.bean.result.CourseDimensionResult;
|
|
|
|
+import com.qmth.teachcloud.report.business.bean.result.TAExamCourseCollegeInspectResult;
|
|
import com.qmth.teachcloud.report.business.bean.result.TAExamCourseResult;
|
|
import com.qmth.teachcloud.report.business.bean.result.TAExamCourseResult;
|
|
-import com.qmth.teachcloud.report.business.entity.TAExamCourse;
|
|
|
|
-import com.qmth.teachcloud.report.business.entity.TAExamCourseRecord;
|
|
|
|
|
|
+import com.qmth.teachcloud.report.business.bean.result.TBPaperStructResult;
|
|
|
|
+import com.qmth.teachcloud.report.business.entity.*;
|
|
import com.qmth.teachcloud.report.business.enums.PublishStatusEnum;
|
|
import com.qmth.teachcloud.report.business.enums.PublishStatusEnum;
|
|
import com.qmth.teachcloud.report.business.enums.SemesterEnum;
|
|
import com.qmth.teachcloud.report.business.enums.SemesterEnum;
|
|
import com.qmth.teachcloud.report.business.mapper.TAExamCourseMapper;
|
|
import com.qmth.teachcloud.report.business.mapper.TAExamCourseMapper;
|
|
import com.qmth.teachcloud.report.business.mapper.TAExamCourseRecordMapper;
|
|
import com.qmth.teachcloud.report.business.mapper.TAExamCourseRecordMapper;
|
|
-import com.qmth.teachcloud.report.business.service.TAExamCourseService;
|
|
|
|
|
|
+import com.qmth.teachcloud.report.business.service.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -38,6 +41,21 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
@Resource
|
|
@Resource
|
|
TAExamCourseRecordMapper taExamCourseRecordMapper;
|
|
TAExamCourseRecordMapper taExamCourseRecordMapper;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TBPaperService tbPaperService;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TAExamCourseCollegeInspectService taExamCourseCollegeInspectService;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBDimensionService tbDimensionService;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBCommonLevelConfigService tbCommonLevelConfigService;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ TBPaperStructService tbPaperStructService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 开课课程考试总览列表接口
|
|
* 开课课程考试总览列表接口
|
|
*
|
|
*
|
|
@@ -108,4 +126,38 @@ public class TAExamCourseServiceImpl extends ServiceImpl<TAExamCourseMapper, TAE
|
|
map.put("grades", mapList);
|
|
map.put("grades", mapList);
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考查课程考试分析接口
|
|
|
|
+ *
|
|
|
|
+ * @param examId
|
|
|
|
+ * @param semester
|
|
|
|
+ * @param courseCode
|
|
|
|
+ * @param schoolId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public List<Object> surveyInspectAnalyseView(Long examId, SemesterEnum semester, String courseCode, Long schoolId) {
|
|
|
|
+ //查找试卷
|
|
|
|
+ QueryWrapper<TBPaper> tbPaperQueryWrapper = new QueryWrapper<>();
|
|
|
|
+ tbPaperQueryWrapper.lambda().eq(TBPaper::getExamId, examId)
|
|
|
|
+ .eq(TBPaper::getCourseCode, courseCode);
|
|
|
|
+ List<TBPaper> tbPaperList = tbPaperService.list(tbPaperQueryWrapper);
|
|
|
|
+
|
|
|
|
+ //查找科目学院维度
|
|
|
|
+ List<TAExamCourseCollegeInspectResult> taExamCourseCollegeInspectResultList = taExamCourseCollegeInspectService.findCourseDescriptiveStatisticsForCollege(examId, courseCode);
|
|
|
|
+
|
|
|
|
+ //查找维度
|
|
|
|
+ List<CourseDimensionResult> courseDimensionResultList = tbDimensionService.findDimensionInfo(examId, courseCode, 1L);
|
|
|
|
+
|
|
|
|
+ //查找难易度
|
|
|
|
+ QueryWrapper<TBCommonLevelConfig> tbCommonLevelConfigQueryWrapper = new QueryWrapper<>();
|
|
|
|
+ tbCommonLevelConfigQueryWrapper.lambda().eq(TBCommonLevelConfig::getExamId, examId)
|
|
|
|
+ .eq(TBCommonLevelConfig::getCourseCode, courseCode)
|
|
|
|
+ .eq(TBCommonLevelConfig::getLevelType, "难度等级");
|
|
|
|
+ List<TBCommonLevelConfig> tbCommonLevelConfigList = tbCommonLevelConfigService.list(tbCommonLevelConfigQueryWrapper);
|
|
|
|
+
|
|
|
|
+ List<TBPaperStructResult> tbPaperStructList = tbPaperStructService.findQuestionInfo(examId, courseCode);
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
}
|
|
}
|