From 5d32465af99fa8a6333766a446567d2f1285f651 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期五, 26 四月 2024 16:25:53 +0800
Subject: [PATCH] sql备份
---
ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 34 ++++++++++++++++++++++++++++------
1 files changed, 28 insertions(+), 6 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 7591d6e..436efa6 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
@@ -32,7 +32,7 @@
/**
* 鏌ヨ璁惧璧勪骇鍒楄〃
*/
-// @PreAuthorize("@ss.hasPermi('system:monitor:list')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:list')")
@GetMapping("/list")
public TableDataInfo list(TMonitor tMonitor)
{
@@ -44,7 +44,7 @@
/**
* 瀵煎嚭璁惧璧勪骇鍒楄〃
*/
-// @PreAuthorize("@ss.hasPermi('system:monitor:export')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:export')")
@Log(title = "璁惧璧勪骇", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, TMonitor tMonitor)
@@ -57,7 +57,7 @@
/**
* 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅
*/
-// @PreAuthorize("@ss.hasPermi('system:monitor:query')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
@@ -67,7 +67,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)
@@ -78,7 +78,7 @@
/**
* 淇敼璁惧璧勪骇
*/
-// @PreAuthorize("@ss.hasPermi('system:monitor:edit')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:edit')")
@Log(title = "璁惧璧勪骇", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TMonitor tMonitor)
@@ -89,11 +89,33 @@
/**
* 鍒犻櫎璁惧璧勪骇
*/
-// @PreAuthorize("@ss.hasPermi('system:monitor:remove')")
+ @PreAuthorize("@ss.hasPermi('system:monitor:remove')")
@Log(title = "璁惧璧勪骇", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tMonitorService.deleteTMonitorByIds(ids));
}
+
+ /**
+ * 鑾峰彇瑙嗛璁惧缁熻鏁�
+ */
+ @PreAuthorize("@ss.hasPermi('system:monitor:list')")
+ @GetMapping("/getVideoCount/{cameraFunType}")
+ public AjaxResult getVideoCount(@PathVariable String cameraFunType)
+ {
+ return success(tMonitorService.getVideoCount(cameraFunType));
+ }
+
+ /**
+ * 鑾峰彇寮傚父鎭㈠瑙嗛璁惧缁熻鏁�
+ */
+ @PreAuthorize("@ss.hasPermi('system:monitor:list')")
+ @GetMapping("/recoveryException")
+ public AjaxResult recoveryException()
+ {
+ return success(tMonitorService.recoveryException());
+ }
+
+
}
--
Gitblit v1.8.0