Bläddra i källkod

bug 赋分计算

caozixuan 4 år sedan
förälder
incheckning
fccb891759

+ 15 - 13
teachcloud-report-business/src/main/java/com/qmth/teachcloud/report/business/service/impl/AnalyzeForReportServiceImpl.java

@@ -1,6 +1,7 @@
 package com.qmth.teachcloud.report.business.service.impl;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.qmth.teachcloud.common.contant.SpringContextHolder;
 import com.qmth.teachcloud.common.contant.SystemConstant;
 import com.qmth.teachcloud.common.entity.SysOrg;
 import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
@@ -1479,19 +1480,20 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
     @Transactional(rollbackFor = Exception.class)
     @Override
     public void dataCalculate(Long examId,String courseCode) throws Exception {
-        this.buildAnalyzeExamCourse(examId,courseCode);
-        this.buildAnalyzeExamCourseRecord(examId, courseCode);
-        this.buildAnalyzeExamCourseCollegeInspect(examId, courseCode);
-        this.buildAnalyzeExamCourseClazz(examId, courseCode);
-        this.AnalyzePointScoreRate(examId, courseCode);
-        this.buildAnalyzeExamCourseCollegeInspectDio(examId, courseCode);
-        this.buildAnalyzeExamCourseTeacherDio(examId, courseCode);
-        this.buildAnalyzePaperStruct(examId, courseCode);
-        this.buildExamPaperDifficult(examId, courseCode);
-        this.buildExamPaperTeacherDifficult(examId, courseCode);
-        this.buildAnalyzeExamTotal(examId);
-        this.buildAnalyzeExamCourseCollegeTeacher(examId, courseCode);
-        this.buildAnalyzeExamCourseTeacher(examId, courseCode);
+        AnalyzeForReportService analyzeForReportService = SpringContextHolder.getBean(AnalyzeForReportService.class);
+        analyzeForReportService.buildAnalyzeExamCourse(examId,courseCode);
+        analyzeForReportService.buildAnalyzeExamCourseRecord(examId, courseCode);
+        analyzeForReportService.buildAnalyzeExamCourseCollegeInspect(examId, courseCode);
+        analyzeForReportService.buildAnalyzeExamCourseClazz(examId, courseCode);
+        analyzeForReportService.AnalyzePointScoreRate(examId, courseCode);
+        analyzeForReportService.buildAnalyzeExamCourseCollegeInspectDio(examId, courseCode);
+        analyzeForReportService.buildAnalyzeExamCourseTeacherDio(examId, courseCode);
+        analyzeForReportService.buildAnalyzePaperStruct(examId, courseCode);
+        analyzeForReportService.buildExamPaperDifficult(examId, courseCode);
+        analyzeForReportService.buildExamPaperTeacherDifficult(examId, courseCode);
+        analyzeForReportService.buildAnalyzeExamTotal(examId);
+        analyzeForReportService.buildAnalyzeExamCourseCollegeTeacher(examId, courseCode);
+        analyzeForReportService.buildAnalyzeExamCourseTeacher(examId, courseCode);
     }
 
     @Override