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/DataCenterController.java |   77 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 75 insertions(+), 2 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java b/ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java
index 55cb5e8..41d4701 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java
@@ -1,14 +1,20 @@
 package com.ycl.platform.controller;
 
+import annotation.Log;
+import com.ycl.platform.domain.form.UpdateDynamicValueForm;
 import com.ycl.platform.domain.query.DataCenterQuery;
 import com.ycl.platform.service.DataCenterService;
 import com.ycl.platform.service.ITMonitorService;
 import com.ycl.platform.service.PlatformOnlineService;
 import com.ycl.system.Result;
+import enumeration.BusinessType;
 import io.swagger.annotations.ApiOperation;
+import jakarta.servlet.http.HttpServletResponse;
 import lombok.RequiredArgsConstructor;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
+
+import java.io.IOException;
 
 /**
  * 鏁版嵁涓績鎺ュ彛
@@ -38,7 +44,26 @@
         query.setTime();
         return monitorService.assetManagement(query);
     }
-
+    /**
+     * 璧勪骇绠$悊缁熻
+     *
+     * @param query
+     * @return
+     */
+    @GetMapping("/assetManagement/count")
+    @ApiOperation(value = "璧勪骇绠$悊缁熻", notes = "璧勪骇绠$悊缁熻")
+    @PreAuthorize("@ss.hasPermi('assetManagement:page')")
+    public Result assetManagementCount(DataCenterQuery query) {
+        query.setTime();
+        return monitorService.assetManagementCount(query);
+    }
+    @DeleteMapping("/assetManagement/clear")
+    @ApiOperation(value = "娓呯悊涓�鏈轰竴妗�", notes = "娓呯悊涓�鏈轰竴妗�")
+    @PreAuthorize("@ss.hasPermi('point:remove')")
+    @Log(title = "娓呯悊涓�鏈轰竴妗�", businessType = BusinessType.DELETE)
+    public Result clear() {
+        return monitorService.clearMonitor();
+    }
     /**
      * 骞冲彴鍦ㄧ嚎鐜�
      *
@@ -125,6 +150,12 @@
         return dataCenterService.deptVideoAvailabilityRate(query);
     }
 
+    @PutMapping("/videoMinistryVideoAvailable/updateDynamicValue")
+    public Result updateDynamicValue(@RequestBody UpdateDynamicValueForm form){
+        return dataCenterService.updateDynamicValue(form);
+    }
+
+
     /**
      * 瑙嗛锛氬綍鍍忓彲鐢ㄧ巼
      *
@@ -161,8 +192,50 @@
         return dataCenterService.videoImportantPointLabelingAccuracy(query);
     }
 
+
     /**
-     * 瑙嗛锛氭牎鏃舵纭巼
+     * 褰曞儚鍙敤鐜囧鍑�
+     * @param response
+     * @param query
+     * @throws IOException
+     */
+    @PostMapping("/recordingAvailability/export")
+    public void recordingAvailabilityExport(HttpServletResponse response,DataCenterQuery query) throws IOException {
+        query.setTime();
+        dataCenterService.recordingAvailabilityExport(response, query);
+    }
+
+    @PostMapping("/pointOnlineVideo/export")
+    public void pointOnlineVideoExport(HttpServletResponse response,DataCenterQuery query) throws IOException {
+        query.setTime();
+        dataCenterService.pointOnlineVideoExport(response,query);
+    }
+
+    @PostMapping("/pointOnlineCar/export")
+    public void pointOnlineCarExport(HttpServletResponse response,DataCenterQuery query) throws IOException {
+        query.setTime();
+        dataCenterService.pointOnlineCarExport(response,query);
+    }
+
+    @PostMapping("/pointOnlineFace/export")
+    public void pointOnlineFaceExport(HttpServletResponse response,DataCenterQuery query) throws IOException {
+        query.setTime();
+        dataCenterService.pointOnlineFaceExport(response,query);
+    }
+
+    /**
+     * 瑙嗛锛氬鍑洪噸鐐圭偣浣嶆爣娉ㄦ纭巼
+     *
+     * @param query
+     * @return
+     */
+    @PostMapping("/videoImportantPointLabelingAccuracy/export")
+    public void videoImportantPointLabelingAccuracyExport(HttpServletResponse response,DataCenterQuery query) {
+        query.setTime();
+        dataCenterService.videoImportantPointLabelingAccuracyExport(response,query);
+    }
+    /**
+     * 瑙嗛锛氭牎鏃舵纭巼 锛堟柊瑙勫垯宸茬粡寮冪敤锛�
      *
      * @param query
      * @return

--
Gitblit v1.8.0