|
@ -1,7 +1,6 @@ |
|
|
package com.elink.esua.epdc.vaccine.epidemic.controller; |
|
|
package com.elink.esua.epdc.vaccine.epidemic.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.afterturn.easypoi.excel.ExcelExportUtil; |
|
|
|
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams; |
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams; |
|
|
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|
|
import com.elink.esua.epdc.commons.tools.annotation.LogOperation; |
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
@ -22,13 +21,10 @@ import com.elink.esua.epdc.vaccine.epidemic.excel.EpidecmicUserNewExcel; |
|
|
import com.elink.esua.epdc.vaccine.epidemic.service.EpidemicUserInfoService; |
|
|
import com.elink.esua.epdc.vaccine.epidemic.service.EpidemicUserInfoService; |
|
|
import com.elink.esua.epdc.vaccine.epidemic.service.impl.EpidemicUserInfoExportServer; |
|
|
import com.elink.esua.epdc.vaccine.epidemic.service.impl.EpidemicUserInfoExportServer; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.poi.ss.usermodel.Workbook; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -94,7 +90,7 @@ public class EpidemicUserInfoController { |
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
ExportParams exportParams = new ExportParams(); |
|
|
ExportParams exportParams = new ExportParams(); |
|
|
exportParams.setHeight((short) (2 * 256)); |
|
|
exportParams.setHeight((short) (2 * 256)); |
|
|
ExcelUtils.exportBigExcel(StringUtils.EMPTY, params, exportServer, response, new ExportParams(), EpidecmicUserNewExcel.class); |
|
|
ExcelUtils.exportBigExcel(StringUtils.EMPTY, params, exportServer, response, exportParams, EpidecmicUserNewExcel.class); |
|
|
} |
|
|
} |
|
|
/* |
|
|
/* |
|
|
@GetMapping("export") |
|
|
@GetMapping("export") |
|
|