| | |
| | | /** |
| | | * 模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getModel(HttpServletResponse response){ |
| | | ZYearInfo zYearInfo = new ZYearInfo(); |
| | | List<ZYearInfo> emptyList = Collections.singletonList(zYearInfo); |
| | |
| | | util.exportExcel(response, list, "年度健康记录数据"); |
| | | } |
| | | |
| | | @Log(title = "年度健康记录", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export1(HttpServletResponse response) |
| | | { |
| | | List<ZYearInfo> list = zYearInfoService.selectByCondition(); |
| | | log.info("导出记录为:{}",list); |
| | | ExcelUtil<ZYearInfo> util = new ExcelUtil<>(ZYearInfo.class); |
| | | util.exportExcel(response, list, "年度健康记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 导入年度健康记录列表 |
| | | */ |