From 0f58d77f1df46e82dad00b23f245abdcd6cb8a2c Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 20 二月 2023 18:49:18 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/controller/sys/ReportController.java |   39 +--------------------------------------
 1 files changed, 1 insertions(+), 38 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/sys/ReportController.java b/src/main/java/com/lf/server/controller/sys/ReportController.java
index 37918ec..2b0bf94 100644
--- a/src/main/java/com/lf/server/controller/sys/ReportController.java
+++ b/src/main/java/com/lf/server/controller/sys/ReportController.java
@@ -5,6 +5,7 @@
 import com.lf.server.entity.all.ResponseMsg;
 import com.lf.server.entity.sys.ReportEntity;
 import com.lf.server.entity.sys.UserEntity;
+import com.lf.server.helper.StringHelper;
 import com.lf.server.service.all.UploadAttachService;
 import com.lf.server.service.sys.ReportService;
 import com.lf.server.service.sys.TokenService;
@@ -34,11 +35,6 @@
     @Autowired
     TokenService tokenService;
 
-    @Autowired
-    UploadAttachService uploadAttachService;
-
-    private final static String TAB_NAME = "lf.sys_report";
-
     @SysLog()
     @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟")
     @ApiImplicitParams({
@@ -61,19 +57,6 @@
             List<ReportEntity> rs = reportService.selectByPage(name, pageSize, pageSize * (pageIndex - 1));
 
             return success(count, rs);
-        } catch (Exception ex) {
-            return fail(ex.getMessage(), null);
-        }
-    }
-
-    @SysLog()
-    @ApiOperation(value = "鏌ヨ鎵�鏈�")
-    @GetMapping(value = "/selectAll")
-    public ResponseMsg<List<ReportEntity>> selectAll() {
-        try {
-            List<ReportEntity> list = reportService.selectAll();
-
-            return success(list);
         } catch (Exception ex) {
             return fail(ex.getMessage(), null);
         }
@@ -172,25 +155,5 @@
         } catch (Exception ex) {
             return fail(ex.getMessage(), -1);
         }
-    }
-
-    @SysLog()
-    @ApiOperation(value = "涓婁紶鏂囦欢")
-    @ResponseBody
-    @PostMapping(value = "/upload")
-    public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) {
-        UserEntity ue = tokenService.getCurrentUser(req);
-
-        return uploadAttachService.upload(ue, TAB_NAME, file, this);
-    }
-
-    @SysLog()
-    @ApiOperation(value = "涓嬭浇鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guid", value = "闄勪欢Guid", dataType = "String", paramType = "body")
-    })
-    @GetMapping(value = "/download")
-    public void download(String guid, HttpServletResponse res) {
-        uploadAttachService.download(guid, res);
     }
 }

--
Gitblit v1.9.3