deason 5 years ago
parent
commit
4ad8be1ba8

+ 4 - 1
src/main/java/cn/com/qmth/dp/examcloud/oe/Task.java

@@ -50,6 +50,9 @@ public class Task {
 
             // UpdateQuestionScoreService  bean = SpringContextHolder.getBean(UpdateQuestionScoreService.class);
             // bean.start();
+
+            // ExportExamStudentScore bean = SpringContextHolder.getBean(ExportExamStudentScore.class);
+            // bean.start();
         } catch (Exception e) {
             log.error("unexpected", e);
             throw new RuntimeException(e);
@@ -91,4 +94,4 @@ public class Task {
         }
     }
 
-}
+}

+ 4 - 1
src/main/java/cn/com/qmth/dp/examcloud/oe/modules/export_exam_student_score/ExportExamStudentScore.java

@@ -100,7 +100,10 @@ public class ExportExamStudentScore {
         List<String> defaultDynamicColumnValues = new ArrayList<>();// Excel动态列默认值
         String paperStructKey = "";// 试卷结构关键值
 
+        int index = 0;
         for (ExamStudentVO examStudent : examStudents) {
+            log.debug((++index) + "---> examStudentId is " + examStudent.getExamStudentId());
+
             if (!orgNameMaps.containsKey(examStudent.getOrgId())) {
                 String orgName = this.queryOrgName(examStudent.getOrgId());
                 orgNameMaps.put(examStudent.getOrgId(), orgName);
@@ -279,7 +282,7 @@ public class ExportExamStudentScore {
             excelTypes[n] = String.class;
         }
 
-        final String filePath = String.format("/home/oe/exam_%s/exam_student_score_%s.xlsx", examId, courseId);
+        final String filePath = String.format("/home/admin/project/oe/exam_%s/exam_student_score_%s.xlsx", examId, courseId);
         ExcelWriter.write(excelHeaders.toArray(new String[excelHeaders.size()]), excelTypes, excelRows, new File(filePath));
     }
 

+ 1 - 1
src/main/java/cn/com/qmth/dp/examcloud/oe/modules/get_student_one_question_answer/GetStduentOneAnswerService.java

@@ -94,7 +94,7 @@ public class GetStduentOneAnswerService {
 
         }
 
-        String filePath = "/home/oe/one-answer-" + examId + "-" + courseCode + ".xlsx";
+        String filePath = "/home/admin/project/oe/one-answer-" + examId + "-" + courseCode + ".xlsx";
 
         final String[] EXCEL_HEADER = new String[]{"考试批次ID", "课程代码", "学生姓名", "学号",
                 "第" + questionOrder + "题作答"};