Browse Source

修改下载变更记录模板文件路径

fengyanjie 3 years ago
parent
commit
34d9fd24e6

+ 2 - 2
dmp-rwd-edit/src/main/java/com/persagy/dmp/rwd/edit/controller/DownloadController.java

@@ -39,9 +39,9 @@ public class DownloadController {
 //    }
 
     @GetMapping("/download")
-    private void download(@RequestParam String type, HttpServletRequest req, HttpServletResponse resp) throws Exception {
+    private void download(@RequestParam String type, HttpServletRequest req, HttpServletResponse resp){
         //读取文件
-        InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("siatic/file/批量上传变更记录模板2.xlsx");
+        InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("static/file/批量上传变更记录模板.xlsx");
         String fileName = "批量上传变更记录模板.xlsx";
         InputStream inputStream = new BufferedInputStream(resourceAsStream);
         OutputStream out = null;

BIN
dmp-rwd-edit/src/main/resources/siatic/file/批量上传变更记录模板2.xlsx


dmp-rwd-edit/src/main/resources/siatic/file/批量上传变更记录模板.xlsx → dmp-rwd-edit/src/main/resources/static/file/批量上传变更记录模板.xlsx