|
|
@ -127,7 +127,15 @@ public class QuestionnaireController { |
|
|
|
// 未添加时间条件
|
|
|
|
Workbook workbook = questionnaireService.export(export); |
|
|
|
log.info("导出问卷记录结束"); |
|
|
|
String fileName = "山西省缺血性脑卒中数据汇总表"+ DateUtil.format(new Date(), "yyyyMMddHHmmss") +".xlsx"; |
|
|
|
String str = ""; |
|
|
|
if (1L == export.getQid()) { |
|
|
|
str = "2021年1-6月"; |
|
|
|
}else if (3L == export.getQid()) { |
|
|
|
str = "2021年7-11月"; |
|
|
|
}else if (4L == export.getQid()) { |
|
|
|
str = "2021年7-12月"; |
|
|
|
} |
|
|
|
String fileName = str+"山西省缺血性脑卒中数据汇总表"+ DateUtil.format(new Date(), "yyyyMMddHHmmss") +".xlsx"; |
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8)); |
|
|
|
workbook.write(response.getOutputStream()); |
|
|
|
} |
|
|
|