From 93a16e3707b870856594e89b950174b64bb7d6cd Mon Sep 17 00:00:00 2001
From: whycxzp <perryhsu@163.com>
Date: 星期三, 01 三月 2023 10:55:34 +0800
Subject: [PATCH] ecr提交前一步执行原文件存储

---
 src/main/java/com/whyc/controller/ECRController.java |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ECRController.java b/src/main/java/com/whyc/controller/ECRController.java
index 0e7f37b..761ea03 100644
--- a/src/main/java/com/whyc/controller/ECRController.java
+++ b/src/main/java/com/whyc/controller/ECRController.java
@@ -11,6 +11,7 @@
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
+import javax.servlet.http.HttpServletResponse;
 import java.io.IOException;
 import java.text.ParseException;
 import java.util.Date;
@@ -48,7 +49,9 @@
 
     @ApiOperation("鍒嗛〉鏌ヨECR璁板綍")
     @GetMapping("searchEcr")
-    public Response searchEcr(@RequestParam int number, @RequestParam String subCode, @RequestParam String subModel,
+    public Response searchEcr(@RequestParam(required = false) String number,
+                              @RequestParam(required = false) String subCode,
+                              @RequestParam(required = false) String subModel,
                               @RequestParam String createTime, @RequestParam String createTime1,
                               @RequestParam int pageCurr, @RequestParam int pageSize){
         Date testTime1= null;
@@ -61,4 +64,19 @@
         }
         return service.searchEcr(number,subCode,subModel,testTime1,testTime2,pageCurr,pageSize);
     }
+
+    @ApiOperation("瀵煎嚭鎵�鏈夎褰�")
+    @GetMapping("exportExcel")
+    public void exportExcel(HttpServletResponse response){
+        service.exportExcel(response);
+    }
+
+    @ApiOperation("鍒犻櫎ECR璁板綍")
+    @GetMapping("deleteEcr")
+    public Response deleteEcr( @RequestParam String number,
+                               @RequestParam(required = false) String filePath){
+        return service.deleteEcr(number,filePath);
+    }
+
+
 }

--
Gitblit v1.9.1