【修改】文件导出新增文件名称编写
This commit is contained in:
parent
29ddfa9583
commit
7fd9e9e9e0
|
|
@ -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<BmCompanyInfo> bmCompanyInfoExcelUtil = new ExcelUtil<>(BmCompanyInfo.class);
|
||||
bmCompanyInfoExcelUtil.exportExcel(response,bmCompanyInfoService.selectList(new BmCompanyDto()),"企业入驻信息","","企业入驻信息");
|
||||
|
|
|
|||
|
|
@ -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<SysDic> sysDicExcelUtil = new ExcelUtil<>(SysDic.class);
|
||||
sysDicExcelUtil.exportExcel(response,bmCompanyTypeService.selectCompanyTypeList(new SysDic()),"企业类型","","企业类型");
|
||||
|
|
|
|||
|
|
@ -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<BusinessOpenVo> businessOpenVoExcelUtil = new ExcelUtil<>(BusinessOpenVo.class);
|
||||
businessOpenVoExcelUtil.exportExcel(response,businessOpenService.selectList(new BmCompanyDto()),"企业业务开通数据","","企业业务开通数据");
|
||||
|
|
|
|||
Loading…
Reference in New Issue