From 95da38d29cc4a88d1ee8b852f54b37fc5052a0ee Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 20 二月 2023 18:45:19 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/controller/sys/ReportController.java | 50 -------------------------------------------------- 1 files changed, 0 insertions(+), 50 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 1ac223a..2b0bf94 100644 --- a/src/main/java/com/lf/server/controller/sys/ReportController.java +++ b/src/main/java/com/lf/server/controller/sys/ReportController.java @@ -35,11 +35,6 @@ @Autowired TokenService tokenService; - @Autowired - UploadAttachService uploadAttachService; - - private final static String TAB_NAME = "lf.sys_report"; - @SysLog() @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟") @ApiImplicitParams({ @@ -159,51 +154,6 @@ return success(count); } 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); - } - - @SysLog() - @ApiOperation(value = "涓嬭浇鎶ュ憡") - @ApiImplicitParams({ - @ApiImplicitParam(name = "id", value = "鎶ュ憡ID", dataType = "Integer", paramType = "7") - }) - @GetMapping(value = "/downloadReport") - public void downloadReport(Integer id, HttpServletRequest req, HttpServletResponse res) { - try { - if (null == id || id < 1) { - return; - } - - ReportEntity re = reportService.selectById(id); - if (null == re || StringHelper.isEmpty(re.getGuid()) || StringHelper.isEmpty(re.getType()) || StringHelper.isEmpty(re.getCode())) { - return; - } - - UserEntity ue = tokenService.getCurrentUser(req); - - reportService.createReport(ue, re, res); - } catch (Exception ex) { - log.error(ex.getMessage(), ex); } } } -- Gitblit v1.9.3