fix: 修复带文件导出的Excel打不开的问题

This commit is contained in:
2023-09-25 10:32:22 +08:00
parent 335163e1c5
commit 681d26b4a1
@@ -991,7 +991,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
ZipOutputStream zipOut = new ZipOutputStream(response.getOutputStream());
// 将Excel加入ZIP
ZipEntry excelEntry = new ZipEntry(fileName + ".xlsx");
ZipEntry excelEntry = new ZipEntry(fileName + ".xls");
zipOut.putNextEntry(excelEntry);
byte[] bytes = excelOutputStream.toByteArray();
zipOut.write(bytes, 0, bytes.length);