From 681d26b4a148cc51821f42f2c99f181f48b9b777 Mon Sep 17 00:00:00 2001 From: caihaohan Date: Mon, 25 Sep 2023 10:32:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B8=A6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=AF=BC=E5=87=BA=E7=9A=84Excel=E6=89=93=E4=B8=8D?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/laws/common/service/impl/LawsCommonServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java index 13d8a189..28914da8 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/common/service/impl/LawsCommonServiceImpl.java @@ -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);