From c83101eb62f5d4906b9c01ceea6b21a37f9e84d8 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 18 十一月 2025 09:24:53 +0800
Subject: [PATCH] bug修复
---
ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java | 75 +++++++++++++++++++++++++++++++++++++
1 files changed, 74 insertions(+), 1 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 b151c5f..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,6 +192,48 @@
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);
+ }
/**
* 瑙嗛锛氭牎鏃舵纭巼 锛堟柊瑙勫垯宸茬粡寮冪敤锛�
*
--
Gitblit v1.8.0