From 3b0516a2959e25576e4f3fda697a3b025d06c8c9 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 24 六月 2025 14:09:07 +0800
Subject: [PATCH] 每日录像可用指标添加日志,修改大屏为查看当前月平均

---
 ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java
index 167be5c..5c9eba9 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java
@@ -10,6 +10,7 @@
 import enumeration.BusinessType;
 import jakarta.servlet.http.HttpServletResponse;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
@@ -29,7 +30,7 @@
     /**
      * 鏌ヨ骞冲彴杩愯鐩戞帶鍒楄〃
      */
-    // @PreAuthorize("@ss.hasPermi('platform:platform:list')")
+    @PreAuthorize("@ss.hasPermi('platform:platform:list')")
     @GetMapping("/list")
     public TableDataInfo list(TPlatform tPlatform) {
         startPage();
@@ -40,7 +41,7 @@
     /**
      * 瀵煎嚭骞冲彴杩愯鐩戞帶鍒楄〃
      */
-    // @PreAuthorize("@ss.hasPermi('platform:platform:export')")
+    @PreAuthorize("@ss.hasPermi('platform:platform:export')")
     @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, TPlatform tPlatform) {
@@ -52,7 +53,7 @@
     /**
      * 鑾峰彇骞冲彴杩愯鐩戞帶璇︾粏淇℃伅
      */
-    // @PreAuthorize("@ss.hasPermi('platform:platform:query')")
+    @PreAuthorize("@ss.hasPermi('platform:platform:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(tPlatformService.selectTPlatformById(id));
@@ -61,7 +62,7 @@
     /**
      * 鏂板骞冲彴杩愯鐩戞帶
      */
-    // @PreAuthorize("@ss.hasPermi('platform:platform:add')")
+    @PreAuthorize("@ss.hasPermi('platform:platform:add')")
     @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TPlatform tPlatform) {
@@ -71,7 +72,7 @@
     /**
      * 淇敼骞冲彴杩愯鐩戞帶
      */
-    // @PreAuthorize("@ss.hasPermi('platform:platform:edit')")
+    @PreAuthorize("@ss.hasPermi('platform:platform:edit')")
     @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TPlatform tPlatform) {
@@ -81,7 +82,7 @@
     /**
      * 鍒犻櫎骞冲彴杩愯鐩戞帶
      */
-    // @PreAuthorize("@ss.hasPermi('platform:platform:remove')")
+    @PreAuthorize("@ss.hasPermi('platform:platform:remove')")
     @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {

--
Gitblit v1.8.0