|
@@ -1539,8 +1539,13 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
|
writer.writeDataArrays("成绩单", null, columnNames, columnValues.listIterator());
|
|
|
|
|
|
|
|
|
- Path basePath = Paths.get(downloadFilePath);
|
|
|
- Path filePath = basePath.resolve(basicCourse.getName() + "-成绩单" + SystemConstant.EXCEL_PREFIX);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Path filePath = Paths.get(
|
|
|
+ downloadFilePath,
|
|
|
+ new String((basicCourse.getName() + "-成绩单" + SystemConstant.EXCEL_PREFIX).getBytes("UTF-8"), StandardCharsets.UTF_8)
|
|
|
+ );
|
|
|
OutputStream outputStream = Files.newOutputStream(filePath, StandardOpenOption.CREATE, StandardOpenOption.WRITE);
|
|
|
writer.output(outputStream);
|
|
|
outputStream.flush();
|