fix: 修复带文件导出的Excel打不开的问题
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user