From 1bc536c54fc1c2f25a4cff4b162cfa6979604fff Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 29 八月 2024 17:31:10 +0800 Subject: [PATCH] 企业微信对接+工时优化+设备查询项目树结构优化 --- inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java b/inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java index 8e450da..ccfdb62 100644 --- a/inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java +++ b/inspect-server/src/main/java/com/yuanchu/mom/controller/InsReportController.java @@ -21,6 +21,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.File; +import java.io.IOException; import java.io.PrintWriter; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; @@ -63,7 +64,7 @@ pathName = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddHHmmss")) + "_" + file.getOriginalFilename(); urlString = realpath + "/" + pathName; file.transferTo(new File(urlString)); - return Result.success(insReportService.inReport("/word/"+pathName, id)); + return Result.success(insReportService.inReport("/word/" + pathName, id)); } catch (Exception e) { throw new ErrorException("鏂囦欢涓婁紶澶辫触"); } @@ -100,8 +101,8 @@ @ValueClassify("鎶ュ憡缂栧埗") @ApiOperation(value = "鎵瑰噯") @PostMapping("/ratifyReport") - public Result ratifyReport(Integer id, Integer isRatify, String ratifyTell) { - return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell)); + public Result ratifyReport(Integer id, Integer isRatify, String ratifyTell,String sealUrl) { + return Result.success(insReportService.ratifyReport(id, isRatify, ratifyTell,sealUrl)); } @RequestMapping("/onlyOffice/save") @@ -133,4 +134,18 @@ writer.write("{\"error\":0}"); } } + + @ValueAuth + @ApiOperation(value = "鎶ュ憡鎵归噺涓嬭浇") + @GetMapping("/downAll") + public Result downAll(String ids) { + return Result.success(insReportService.downAll(ids)); + } + + @ValueAuth + @ApiOperation(value = "鎶ュ憡鎵归噺涓婁紶") + @PostMapping("/upAll") + public Result upAll(MultipartFile file) throws IOException { + return Result.success(insReportService.upAll(file)); + } } -- Gitblit v1.9.3