From dfdd7980577e12e32fc9571f46f49385ac5edcdd Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 14 二月 2025 12:51:29 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/controller/OrderController.java |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/OrderController.java b/src/main/java/com/zy/asrs/controller/OrderController.java
index fbeaeae..bf673f9 100644
--- a/src/main/java/com/zy/asrs/controller/OrderController.java
+++ b/src/main/java/com/zy/asrs/controller/OrderController.java
@@ -419,13 +419,13 @@
         return R.ok();
     }
 
-    @RequestMapping(value = "/order/insert/file/auth")
-    @ManagerAuth
-    public R insertFile(@RequestParam("orderId") String orderId,@RequestParam MultipartFile file){
+    @RequestMapping(value = "/order/insert/labelUp/file/auth")
+//    @ManagerAuth
+    public R insertLabelUpFile(@RequestParam("orderId") String orderId,@RequestParam MultipartFile file){
         String[] split = orderId.split("-");
         int id = Integer.parseInt(split[1]);
         System.out.println("---寮�濮�---");
-        String savePath = "D:/crm/plan/file/"+id+"/"; // 鎸囧畾淇濆瓨鏂囦欢鐨勮矾寰�
+        String savePath = "D:/order/labelUp/file/"+id+"/"; // 鎸囧畾淇濆瓨鏂囦欢鐨勮矾寰�
         try{
             FileSaveExampleUtil.saveFile(file, savePath);
         }catch (Exception e){
@@ -434,4 +434,17 @@
         return R.ok();
     }
 
+    @RequestMapping(value = "/order/view/labelUp/file/auth")
+//    @ManagerAuth
+    public R viewLabelUpFile(@RequestParam("orderId") Long orderId){
+//        int id = Integer.parseInt(orderId);
+        String savePath = "D:/order/labelUp/file/"+orderId+"/"; // 鎸囧畾淇濆瓨鏂囦欢鐨勮矾寰�
+        try{
+            List<FileSaveExampleUtil.FileDTO> fileDTOS = FileSaveExampleUtil.viewFileList(savePath);
+            return R.ok(fileDTOS);
+        }catch (Exception e){
+            return R.error();
+        }
+    }
+
 }

--
Gitblit v1.9.1