deason hai 6 meses
pai
achega
c7096bef23

+ 8 - 3
src/main/java/cn/com/qmth/examcloud/tool/service/batch_import_exam_student/BatchImportExamStudentTask.java

@@ -91,13 +91,13 @@ public class BatchImportExamStudentTask implements TaskService {
         List<ExamStudentInfo> dataList = dataListener.getList();
 
         int total = dataList.size();
-        log.info("共{}条数据!examId:{}", total, examId);
+        log.info("共{}条数据!examId:{} dataFile:{}", total, examId, dataFilePath);
         if (total == 0) {
             return;
         }
 
-        if (total > 200000) {
-            throw new StatusException("Excel的数据限制最大20万条!");
+        if (total > 300000) {
+            throw new StatusException("Excel的数据限制最大30万条!");
         }
 
         // 检验数据
@@ -157,6 +157,8 @@ public class BatchImportExamStudentTask implements TaskService {
                 }
                 examStudent.setCourseId(courseId);
             }
+
+            // log.info(examStudent.toString());
         }
 
         if (!errMessages.isEmpty()) {
@@ -164,6 +166,9 @@ public class BatchImportExamStudentTask implements TaskService {
             throw new StatusException("检验数据有误!");
         }
 
+        log.info("检验数据完成! taskId:{}", task.getId());
+        // if (true) return;
+
         // 开始执行导入
         List<String> failRecords = Collections.synchronizedList(new ArrayList<>());
         long startTime = System.currentTimeMillis();

+ 15 - 0
src/main/java/cn/com/qmth/examcloud/tool/service/batch_import_exam_student/vo/ExamStudentInfo.java

@@ -67,4 +67,19 @@ public class ExamStudentInfo implements Serializable {
 
     private String ext1;//试卷袋编码
 
+    @Override
+    public String toString() {
+        return " examId:" + examId +
+                " studentName:" + studentName +
+                " studentCode:" + studentCode +
+                " identityNumber:" + identityNumber +
+                " orgId:" + orgId +
+                " orgCode:" + orgCode +
+                " orgName:" + orgName +
+                " courseId:" + courseId +
+                " courseCode:" + courseCode +
+                " courseName:" + courseName +
+                " specialtyName:" + specialtyName;
+    }
+
 }