|
@@ -84,7 +84,7 @@ public class TaskMarkResultStandardExportTemplete implements TaskExportTemplete
|
|
|
String excelFilePath = null;
|
|
|
InputStream inputStream = null;
|
|
|
ByteArrayOutputStream out = null;
|
|
|
- int y = 0, min = 0;
|
|
|
+ int min = 0;
|
|
|
try {
|
|
|
taskExportCommon.getTxtList().add(DateUtil.format(new Date(), Constants.DEFAULT_DATE_PATTERN) + "->开始准备处理导出的成绩标准版数据");
|
|
|
Long examId = (Long) map.get("examId");
|
|
@@ -231,7 +231,7 @@ public class TaskMarkResultStandardExportTemplete implements TaskExportTemplete
|
|
|
while (max <= size) {
|
|
|
List subList = markResultStandardExportDtoList.subList(min, max);
|
|
|
//绘制数据
|
|
|
- for (; y < subList.size(); y++) {
|
|
|
+ for (int y = 0; y < subList.size(); y++) {
|
|
|
MarkResultStandardExportDto markResultStandardExportDto = (MarkResultStandardExportDto) subList.get(y);
|
|
|
int firstRow = y + 1;
|
|
|
cellIndex = 0;
|
|
@@ -281,7 +281,7 @@ public class TaskMarkResultStandardExportTemplete implements TaskExportTemplete
|
|
|
log.info("导出成绩标准版数据结束,============耗时============:{}秒", (end - start) / 1000);
|
|
|
} catch (Exception e) {
|
|
|
log.error("导出报错", e);
|
|
|
- taskExportCommon.exception(min, y, e, taskExportCommon.getTxtList());
|
|
|
+ taskExportCommon.exception(min, e, taskExportCommon.getTxtList());
|
|
|
} finally {
|
|
|
//这里写入txt文件
|
|
|
taskExportCommon.writeExportResultTxt(stringJoiner.toString(), taskExportCommon.getTxtList().toString(), excelFilePath);
|