src/main/java/com/ruoyi/energy/controller/EnergyController.java
@@ -57,11 +57,13 @@ @Log(title = "能源类型-导入", businessType = BusinessType.IMPORT) @PostMapping("/importData") @ApiOperation("能源类型-导入") public R importData(MultipartFile file) throws Exception { return energyService.importData(file); } @PostMapping("/downloadTemplate") @ApiOperation("能源类型-下载模板") @Log(title = "能源类型-下载模板", businessType = BusinessType.EXPORT) public void downloadTemplate(HttpServletResponse response) { ExcelUtil<Energy> util = new ExcelUtil<Energy>(Energy.class);