|
@@ -176,8 +176,8 @@ public class BatchImportExamStudentTask implements TaskService {
|
|
throw new StatusException("检验数据有误!");
|
|
throw new StatusException("检验数据有误!");
|
|
}
|
|
}
|
|
|
|
|
|
- log.info("检验数据完成!Excel共{}条【课程_学号:{}条】【课程_证件号:{}条】【课程_学号_证件号:{}条】examId:{} taskId:{}",
|
|
|
|
- total, courseStudentCodes.size(), courseIdentityNumbers.size(), courseStudentCodeIdentityNumbers.size(),
|
|
|
|
|
|
+ log.info("检验数据完成!Excel共{}条 【课程_学号_证件号:{}条】【课程_学号:{}条】【课程_证件号:{}条】 examId:{} taskId:{}",
|
|
|
|
+ total, courseStudentCodeIdentityNumbers.size(), courseStudentCodes.size(), courseIdentityNumbers.size(),
|
|
examId, task.getId());
|
|
examId, task.getId());
|
|
// if (true) return;
|
|
// if (true) return;
|
|
|
|
|
|
@@ -222,8 +222,8 @@ public class BatchImportExamStudentTask implements TaskService {
|
|
}
|
|
}
|
|
|
|
|
|
long cost = Math.max((System.currentTimeMillis() - startTime) / 1000L, 1);
|
|
long cost = Math.max((System.currentTimeMillis() - startTime) / 1000L, 1);
|
|
- String msg = String.format("Excel共%s条 【课程_学号:%s条】【课程_证件号:%s条】【课程_学号_证件号:%s条】 成功数:%s 失败数:%s 平均每秒%s条 总耗时:%s秒",
|
|
|
|
- total, courseStudentCodes.size(), courseIdentityNumbers.size(), courseStudentCodeIdentityNumbers.size(),
|
|
|
|
|
|
+ String msg = String.format("Excel共%s条 【课程_学号_证件号:%s条】【课程_学号:%s条】【课程_证件号:%s条】 成功数:%s 失败数:%s 平均每秒%s条 总耗时:%s秒",
|
|
|
|
+ total, courseStudentCodeIdentityNumbers.size(), courseStudentCodes.size(), courseIdentityNumbers.size(),
|
|
successCount.get(), failCount.get(), total / cost, cost);
|
|
successCount.get(), failCount.get(), total / cost, cost);
|
|
log.info(msg);
|
|
log.info(msg);
|
|
task.setDescription(msg);
|
|
task.setDescription(msg);
|