deason 2 ani în urmă
părinte
comite
43041f5aea

+ 4 - 4
src/main/java/cn/com/qmth/examcloud/tool/service/export_student_answer_and_score_detail/ExportStudentAnswerAndScoreDetailTask.java

@@ -74,7 +74,7 @@ public class ExportStudentAnswerAndScoreDetailTask {
         } else {
             todoCourses = courses;
         }
-        log.info("待处理的课程数为:{}", todoCourses.size());
+        log.info("examId = {}, 待处理的课程数为:{}", examId, todoCourses.size());
 
         for (CourseVO course : todoCourses) {
             // 按考试课程逐个处理
@@ -108,7 +108,7 @@ public class ExportStudentAnswerAndScoreDetailTask {
 
             if (vo.getExamRecordDataId() == null) {
                 // 跳过缺考的情况
-                log.warn("examId={} courseId={} identityNumber={} finished={} absent={}", examId, course.getCourseId(),
+                log.warn("【缺考】examId={} courseId={} identityNumber={} finished={} absent={}", examId, course.getCourseId(),
                         vo.getIdentityNumber(), vo.getIsFinished(), vo.getIsAbsent());
                 continue;
             }
@@ -188,11 +188,11 @@ public class ExportStudentAnswerAndScoreDetailTask {
                 .registerWriteHandler(ExcelHelper.styleStrategy())
                 .sheet().doWrite(excelRows);
 
+        log.info("examId:{} courseId:{} courseCode:{} totalRows:{} 已处理!", examId, course.getCourseId(), course.getCourseCode(), excelRows.size());
+
         excelRows.clear();
         excelHeaders.clear();
         examStudentScoreList.clear();
-
-        log.info("examId:{} courseCode:{} total:{} 已处理!", examId, course.getCourseCode(), excelRows.size());
     }
 
     /**

+ 5 - 3
src/main/java/cn/com/qmth/examcloud/tool/service/update_correct_answer_and_re_fix_score/UpdateCorrectAnswerAndReFixScoreTask.java

@@ -66,7 +66,7 @@ public class UpdateCorrectAnswerAndReFixScoreTask {
         } else {
             todoCourses = courses;
         }
-        log.info("待处理的课程数为:{}", todoCourses.size());
+        log.info("examId = {}, 待处理的课程数为:{}", examId, todoCourses.size());
 
         for (CourseVO course : todoCourses) {
             // 按考试课程逐个处理
@@ -85,12 +85,14 @@ public class UpdateCorrectAnswerAndReFixScoreTask {
             index++;
             if (index % 100 == 0) {
                 float rate = index * 100f / total;
-                log.info("examId:{} courseCode:{} total:{} index:{} 进度:{}%", examId, course.getCourseCode(), total, index, rate);
+                log.info("examId:{} courseId:{} courseCode:{} total:{} index:{} 进度:{}%",
+                        examId, course.getCourseId(), course.getCourseCode(), total, index, rate);
             }
         }
 
+        log.info("examId:{} courseId:{} courseCode:{} total:{} 已处理!", examId, course.getCourseId(), course.getCourseCode(), total);
+
         examStudents.clear();
-        log.info("examId:{} courseCode:{} total:{} 已处理!", examId, course.getCourseCode(), total);
     }
 
     private void fix(String key, String token, Long examId, Long courseId, Long examStudentId) {