| | |
| | | */ |
| | | @SneakyThrows |
| | | @Operation(summary = "下载气体预测数据导入模板", description = "下载气体预测数据导入模板") |
| | | @RequiresPermissions("gasPipeline:prediction:template") |
| | | @Log(title = "下载气体预测数据导入模板", businessType = BusinessType.EXPORT) |
| | | // @RequiresPermissions("gasPipeline:prediction:template") |
| | | // @Log(title = "下载气体预测数据导入模板", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/template") |
| | | public ResponseEntity<ByteArrayResource> exportTemplate() { |
| | | byte[] file = IOUtils.resourceToByteArray("/templates/上传气体预测数据模板.xlsx"); |
| | | byte[] file = IOUtils.resourceToByteArray("/templates/气体预测数据模板v1.0.xlsx"); |
| | | ByteArrayResource resource = new ByteArrayResource(file); |
| | | return ResponseEntity.ok() |
| | | .header(HttpHeaders.CONTENT_DISPOSITION, |