From 24b944689e6a11d0bf1830956cc79c89399479d7 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Wed, 8 Sep 2021 10:52:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E4=BF=A1=E6=81=AF=E9=87=87?= =?UTF-8?q?=E9=9B=86-=E4=BA=BA=E5=8F=A3=E4=BF=A1=E6=81=AF=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=20=EF=BC=8Cexcel=20=E6=A0=87=E9=A2=98=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epdc/controller/PopulationInformationController.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/controller/PopulationInformationController.java b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/controller/PopulationInformationController.java index 513770cb..3c5f3e4c 100644 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/controller/PopulationInformationController.java +++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/controller/PopulationInformationController.java @@ -106,11 +106,7 @@ public class PopulationInformationController { @GetMapping("export") public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { List list = populationInformationService.list(params); - String fileName = "居民-人口信息导出"; - if(list.size()>0){ - fileName = fileName.concat("("+list.size()+"条)"); - } - ExcelUtils.exportExcelToTarget(response, fileName, list, PopulationInformationExcel.class); + ExcelUtils.exportExcelToTarget(response, "居民-人口信息导出", list, PopulationInformationExcel.class); } /** * @Description 判断身份证是否合法