From 739391fd331ef521d00594074a696baff7046c1e Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期日, 08 一月 2023 19:45:58 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/controller/data/upload/UploadController.java |   82 ++++++++++++++++++++--------------------
 1 files changed, 41 insertions(+), 41 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/data/upload/UploadController.java b/src/main/java/com/lf/server/controller/data/upload/UploadController.java
index 9bf1e71..3d29d1f 100644
--- a/src/main/java/com/lf/server/controller/data/upload/UploadController.java
+++ b/src/main/java/com/lf/server/controller/data/upload/UploadController.java
@@ -77,22 +77,6 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ鏄犲皠")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "path", value = "璺緞", dataType = "String", paramType = "query")
-    })
-    @GetMapping(value = "/selectMappers")
-    public ResponseMsg<List<TabMapperEntity>> selectMappers(String path) {
-        try {
-            List<TabMapperEntity> list = dataLoaderService.selectMappers(path);
-
-            return success(list);
-        } catch (Exception ex) {
-            return fail(ex.getMessage(), null);
-        }
-    }
-
-    @SysLog()
     @ApiOperation(value = "鏌ヨ鏂囦欢")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "path", value = "璺緞", dataType = "String", paramType = "query")
@@ -101,6 +85,47 @@
     public ResponseMsg<List<MetaEntity>> selectFiles(String path) {
         try {
             List<MetaEntity> list = baseUploadService.selectFiles(path, EXT_LIST);
+
+            return success(list);
+        } catch (Exception ex) {
+            return fail(ex.getMessage(), null);
+        }
+    }
+
+    @SysLog()
+    @ApiOperation(value = "鍒犻櫎鏂囦欢")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "MetaEntity", paramType = "body")
+    })
+    @ResponseBody
+    @PostMapping(value = "/deleteFiles")
+    public ResponseMsg<Object> deleteFiles(@RequestBody List<MetaEntity> list, HttpServletRequest req) {
+        try {
+            UserEntity ue = tokenService.getCurrentUser(req);
+            if (ue == null) {
+                return fail("鐢ㄦ埛鏈櫥褰�", null);
+            }
+            if (null == list || list.isEmpty()) {
+                return fail("娌℃湁鎵惧埌鏂囦欢", null);
+            }
+
+            int rows = baseUploadService.deleteFiles(list);
+
+            return success("鎴愬姛", rows);
+        } catch (Exception ex) {
+            return fail(ex.getMessage(), null);
+        }
+    }
+
+    @SysLog()
+    @ApiOperation(value = "鏌ヨ鏄犲皠")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "path", value = "璺緞", dataType = "String", paramType = "query")
+    })
+    @GetMapping(value = "/selectMappers")
+    public ResponseMsg<List<TabMapperEntity>> selectMappers(String path) {
+        try {
+            List<TabMapperEntity> list = dataLoaderService.selectMappers(path);
 
             return success(list);
         } catch (Exception ex) {
@@ -187,31 +212,6 @@
             dataLoaderService.insertFiles(me, entity.getFileEntities(), entity.getTabEntities());
 
             return success("鎴愬姛", entity.getTabEntities());
-        } catch (Exception ex) {
-            return fail(ex.getMessage(), null);
-        }
-    }
-
-    @SysLog()
-    @ApiOperation(value = "鍒犻櫎鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "list", value = "瀹炰綋绫婚泦鍚�", dataType = "MetaEntity", paramType = "body")
-    })
-    @ResponseBody
-    @PostMapping(value = "/deleteFiles")
-    public ResponseMsg<Object> deleteFiles(@RequestBody List<MetaEntity> list, HttpServletRequest req) {
-        try {
-            UserEntity ue = tokenService.getCurrentUser(req);
-            if (ue == null) {
-                return fail("鐢ㄦ埛鏈櫥褰�", null);
-            }
-            if (null == list || list.isEmpty()) {
-                return fail("娌℃湁鎵惧埌鏂囦欢", null);
-            }
-
-            int rows = baseUploadService.deleteFiles(list);
-
-            return success("鎴愬姛", rows);
         } catch (Exception ex) {
             return fail(ex.getMessage(), null);
         }

--
Gitblit v1.9.3