From afae2409d65e0c044b8119b3fd8f57e438c18a08 Mon Sep 17 00:00:00 2001
From: fei <791364011@qq.com>
Date: 星期日, 09 十一月 2025 21:29:24 +0800
Subject: [PATCH] 修改了大量的代码块

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DoublePdfGenerateController.java |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DoublePdfGenerateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DoublePdfGenerateController.java
index e8cf77c..50f8abf 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DoublePdfGenerateController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/DoublePdfGenerateController.java
@@ -7,9 +7,8 @@
 import com.ruoyi.domain.ArchiveCategory;
 import com.ruoyi.service.IArchiveDoublePdfGenerateService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
 
 import java.io.IOException;
 
@@ -17,16 +16,24 @@
 import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE;
 @Anonymous
 @RestController
-@RequestMapping("/doublePdf")
+@RequestMapping("/system/doublePdf")
 
 public class DoublePdfGenerateController {
     @Autowired
     private IArchiveDoublePdfGenerateService iArchiveDoublePdfGenerateService;
 
-    @GetMapping("/testConn")
-    public AjaxResult testCon() throws IOException {
-        iArchiveDoublePdfGenerateService
-                .testConnection();
-        return AjaxResult.success("2134");
+    @PostMapping("/upload")
+    public AjaxResult getOriginalPdf(@RequestParam("file") MultipartFile file) throws IOException {
+        AjaxResult ar = iArchiveDoublePdfGenerateService
+                .testConnection(file);
+        System.out.println(file);
+        return ar;
+    }
+    @GetMapping("downLoadFile/{id}")
+    public AjaxResult getPdfDownLoad(@PathVariable String id )
+    {
+        AjaxResult ar = iArchiveDoublePdfGenerateService
+                .getDownLoadInfo(id);
+        return ar;
     }
 }

--
Gitblit v1.9.1