From 7fd9e9e9e065833cc144f3d5c80df0701d524ac4 Mon Sep 17 00:00:00 2001 From: nmy <849173236@qq.com> Date: Tue, 5 Dec 2023 16:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=AF=BC=E5=87=BA=E6=96=B0=E5=A2=9E=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E7=BC=96=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/zlpt/company/controller/BmCompanyInfoController.java | 3 ++- .../bonus/zlpt/company/controller/BmCompanyTypeController.java | 3 ++- .../bonus/zlpt/company/controller/BusinessOpenController.java | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyInfoController.java b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyInfoController.java index b5cc162..b5eb4e1 100644 --- a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyInfoController.java +++ b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyInfoController.java @@ -16,6 +16,7 @@ import com.bonus.zlpt.common.log.annotation.Log; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; +import java.io.UnsupportedEncodingException; import java.time.LocalDateTime; import java.util.List; @@ -118,7 +119,7 @@ public class BmCompanyInfoController extends BaseController { * @param response */ @GetMapping("/exportExcel") - public void exportExcel(HttpServletResponse response){ + public void exportExcel(HttpServletResponse response) throws UnsupportedEncodingException { ExcelUtil bmCompanyInfoExcelUtil = new ExcelUtil<>(BmCompanyInfo.class); bmCompanyInfoExcelUtil.exportExcel(response,bmCompanyInfoService.selectList(new BmCompanyDto()),"企业入驻信息","","企业入驻信息"); diff --git a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyTypeController.java b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyTypeController.java index 7ff70d1..b69bee9 100644 --- a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyTypeController.java +++ b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BmCompanyTypeController.java @@ -13,6 +13,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletResponse; +import java.io.UnsupportedEncodingException; import java.time.LocalDateTime; import java.util.List; @@ -129,7 +130,7 @@ public class BmCompanyTypeController extends BaseController { * @param response */ @GetMapping("/exportExcel") - public void exportExcel(HttpServletResponse response){ + public void exportExcel(HttpServletResponse response) throws UnsupportedEncodingException { ExcelUtil sysDicExcelUtil = new ExcelUtil<>(SysDic.class); sysDicExcelUtil.exportExcel(response,bmCompanyTypeService.selectCompanyTypeList(new SysDic()),"企业类型","","企业类型"); diff --git a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BusinessOpenController.java b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BusinessOpenController.java index 6a9c60d..4e9b9cb 100644 --- a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BusinessOpenController.java +++ b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/BusinessOpenController.java @@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletResponse; +import java.io.UnsupportedEncodingException; import java.time.LocalDateTime; import java.util.List; @@ -73,7 +74,7 @@ public class BusinessOpenController extends BaseController { * @param response */ @GetMapping("/exportExcel") - public void exportExcel(HttpServletResponse response){ + public void exportExcel(HttpServletResponse response) throws UnsupportedEncodingException { ExcelUtil businessOpenVoExcelUtil = new ExcelUtil<>(BusinessOpenVo.class); businessOpenVoExcelUtil.exportExcel(response,businessOpenService.selectList(new BmCompanyDto()),"企业业务开通数据","","企业业务开通数据");