|
@@ -63,6 +63,7 @@ public class BatchImportExamStudentTask implements TaskService {
|
|
|
|
|
|
int total = dataList.size();
|
|
int total = dataList.size();
|
|
log.info("共{}条数据!examId:{}", total, examId);
|
|
log.info("共{}条数据!examId:{}", total, examId);
|
|
|
|
+ long start = System.currentTimeMillis();
|
|
|
|
|
|
// 检验数据
|
|
// 检验数据
|
|
Map<String, Long> orgMaps = new HashMap<>();
|
|
Map<String, Long> orgMaps = new HashMap<>();
|
|
@@ -142,7 +143,8 @@ public class BatchImportExamStudentTask implements TaskService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- String msg = String.format("共%s条 成功%s条 失败%s条!", total, total - failCount, failCount);
|
|
|
|
|
|
+ long cost = (System.currentTimeMillis() - start) / 1000;
|
|
|
|
+ String msg = String.format("共%s条 成功%s条 失败%s条 耗时{}秒", total, total - failCount, failCount, cost);
|
|
log.info(msg);
|
|
log.info(msg);
|
|
task.setDescription(msg);
|
|
task.setDescription(msg);
|
|
}
|
|
}
|