|
@@ -1537,20 +1537,10 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
|
log.debug("导出Excel开始...");
|
|
|
ExcelWriter writer = ExcelWriter.create(ExcelType.XLSX);
|
|
|
writer.writeDataArrays("成绩单", null, columnNames, columnValues.listIterator());
|
|
|
- FileOutputStream outputStream = new FileOutputStream(downloadFilePath + File.separator + new String((basicCourse.getName() + "-成绩单").getBytes("UTF-8"), "ISO-8859-1") + SystemConstant.EXCEL_PREFIX);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- writer.output(outputStream);
|
|
|
- outputStream.flush();
|
|
|
- outputStream.close();
|
|
|
+ FileOutputStream fileOut = new FileOutputStream(downloadFilePath + File.separator + basicCourse.getName() + "-成绩单" + SystemConstant.EXCEL_PREFIX);
|
|
|
+ writer.output(fileOut);
|
|
|
+ fileOut.flush();
|
|
|
+ fileOut.close();
|
|
|
|
|
|
|
|
|
Map<Object, List<CellValue[]>> listMap = columnValues.stream().collect(Collectors.groupingBy(m -> getCellValueFieldValue("value", m[3])));
|