|
@@ -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();
|