From a5de74e84d74eef4543e56b1181a5b4b269212e1 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 10 一月 2023 16:34:08 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/controller/data/upload/CheckController.java |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/data/upload/CheckController.java b/src/main/java/com/lf/server/controller/data/upload/CheckController.java
index 66b9850..c4bc149 100644
--- a/src/main/java/com/lf/server/controller/data/upload/CheckController.java
+++ b/src/main/java/com/lf/server/controller/data/upload/CheckController.java
@@ -13,6 +13,9 @@
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.ResponseBody;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -69,8 +72,12 @@
 
     @SysLog()
     @ApiOperation(value = "鎻愪氦鏁版嵁璐ㄦ")
-    @GetMapping(value = "/uploadChecks")
-    public ResponseMsg<Object> uploadChecks(FmeReqEntity entity, HttpServletRequest req) {
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "entity", value = "FME璇锋眰瀹炰綋绫�", dataType = "FmeReqEntity", paramType = "body")
+    })
+    @ResponseBody
+    @PostMapping(value = "/uploadChecks")
+    public ResponseMsg<Object> uploadChecks(@RequestBody FmeReqEntity entity, HttpServletRequest req) {
         try {
             if (StringHelper.isEmpty(entity.names)) {
                 return fail("浠诲姟鍚嶇О涓嶈兘涓虹┖");
@@ -102,10 +109,16 @@
         }
     }
 
+    /**
+     * 鑾峰彇鏂囦欢璺緞
+     */
     private String getFullPath(String filePath) {
         return null == filePath ? null : pathHelper.getConfig().getTempPath() + File.separator + filePath;
     }
 
+    /**
+     * 鏄�/鍚︿负Zip鏂囦欢
+     */
     private boolean isZipFile(String filePath) {
         if (null == filePath || !filePath.toLowerCase().endsWith(StaticData.ZIP)) {
             return false;
@@ -116,6 +129,9 @@
         return zipFile.exists() && !zipFile.isDirectory();
     }
 
+    /**
+     * 鏄�/鍚︿负Excel鏂囦欢
+     */
     private boolean isXlsFile(String filePath) {
         if (null == filePath) {
             return false;

--
Gitblit v1.9.3