caozixuan 4 years ago
parent
commit
6879d9307a

+ 2 - 0
teachcloud-report-business/src/main/java/com/qmth/teachcloud/report/business/templete/service/impl/TaskCalculateServiceImpl.java

@@ -3,6 +3,7 @@ package com.qmth.teachcloud.report.business.templete.service.impl;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.qmth.teachcloud.common.contant.SystemConstant;
 import com.qmth.teachcloud.report.business.entity.TBPaper;
+import com.qmth.teachcloud.report.business.enums.AssignEnum;
 import com.qmth.teachcloud.report.business.service.AnalyzeForReportService;
 import com.qmth.teachcloud.report.business.service.TBExamService;
 import com.qmth.teachcloud.report.business.service.TBPaperService;
@@ -39,6 +40,7 @@ public class TaskCalculateServiceImpl implements TaskCalculateService {
                 .eq(TBPaper::getExamId, examId).eq(TBPaper::getCourseCode, courseCode));
         for (TBPaper tbPaper : tbPaperList) {
             tbPaper.setCoefficient(coefficient);
+            tbPaper.setScoreType(AssignEnum.NEED_ASSIGN_SCORE);
         }
         tbPaperService.updateBatchById(tbPaperList);
         analyzeForReportService.normalAssignScore(examId,tbExamService.getById(examId).getSchoolId(),courseCode);