Commit dc139a004e44c0156438c3f391f038eb944ff2f6

Authored by xp.Huang
1 parent c8b82d7f

perf: 调整模板命名

@@ -355,7 +355,7 @@ public class ThingsModelController extends BaseController { @@ -355,7 +355,7 @@ public class ThingsModelController extends BaseController {
355 @GetMapping("/downloadTemplate") 355 @GetMapping("/downloadTemplate")
356 @ApiOperation("excel模板下载") 356 @ApiOperation("excel模板下载")
357 public ResponseEntity<Resource> downloadTemplate() throws IOException { 357 public ResponseEntity<Resource> downloadTemplate() throws IOException {
358 - InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("template"+ File.separator +"moban.xls"); 358 + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("template"+ File.separator +"template.xls");
359 if(inputStream!=null){ 359 if(inputStream!=null){
360 HttpHeaders headers = new HttpHeaders(); 360 HttpHeaders headers = new HttpHeaders();
361 headers.add(HttpHeaders.CONTENT_DISPOSITION,"attachment;filename=物模型属性导入模板.xls"); 361 headers.add(HttpHeaders.CONTENT_DISPOSITION,"attachment;filename=物模型属性导入模板.xls");