From dbf1793b62b69f824a401242cfd5430dd4992fa8 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 18 十一月 2024 12:01:14 +0800 Subject: [PATCH] 运行监控导出 --- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java index 32d1f22..48f4102 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java @@ -83,7 +83,7 @@ /** * 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅 */ - @PreAuthorize("@ss.hasPermi('system:monitor:query')") + @PreAuthorize("@ss.hasPermi('system:monitor:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -93,7 +93,7 @@ /** * 鏂板璁惧璧勪骇 */ - @PreAuthorize("@ss.hasPermi('system:monitor:add')") + @PreAuthorize("@ss.hasPermi('system:monitor:add')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TMonitor tMonitor) @@ -142,6 +142,14 @@ { return success(tMonitorService.recoveryException(monitor)); } - + /** + * 瀵煎嚭 + */ + @PreAuthorize("@ss.hasPermi('system:monitor:export')") + @Log(title = "瀵煎嚭", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response,TMonitorVO tMonitor) throws IOException, NoSuchFieldException, IllegalAccessException { + tMonitorService.export(response,tMonitor); + } } -- Gitblit v1.8.0