|
|
@ -48,9 +48,9 @@ public class ExportController { |
|
|
|
|
|
|
|
@ApiOperation(value = "导出最新急救信息(自用)", notes = "") |
|
|
|
@RequestMapping(value = "/exportFirstAid", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public void exportFirstAid(String startTime, HttpServletResponse response) throws Exception{ |
|
|
|
public void exportFirstAid(String startTime,Byte type, HttpServletResponse response) throws Exception{ |
|
|
|
log.info("导出最新急救信息(自用):{}",startTime); |
|
|
|
Workbook workbook = exportService.exportFirstAid(startTime); |
|
|
|
Workbook workbook = exportService.exportFirstAid(startTime,type); |
|
|
|
log.info("导出最新急救信息(自用)结束:{}",workbook); |
|
|
|
String fileName = "医院急救信息汇总表"+ DateUtil.format(new Date(), "yyyyMMddHHmmss") +".xlsx"; |
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8)); |
|
|
|