From 685ba1842974c0a406449e5579c66d6c5a3510e3 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 19 十一月 2024 22:26:02 +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