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 | 498 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 496 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 fb4899a..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,7 +1,20 @@
package com.ycl.platform.controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+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;
/**
* 鏁版嵁涓績鎺ュ彛
@@ -9,10 +22,491 @@
* @author锛歺p
* @date锛�2024/8/1 16:40
*/
+@RequiredArgsConstructor
@RestController
@RequestMapping("/data/center")
public class DataCenterController {
+ private final DataCenterService dataCenterService;
+ private final PlatformOnlineService platformOnlineService;
+ private final ITMonitorService monitorService;
+
+ /**
+ * 璧勪骇绠$悊
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/assetManagement")
+ @ApiOperation(value = "璧勪骇绠$悊", notes = "璧勪骇绠$悊")
+ @PreAuthorize("@ss.hasPermi('assetManagement:page')")
+ public Result assetManagement(@RequestBody DataCenterQuery query) {
+ 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();
+ }
+ /**
+ * 骞冲彴鍦ㄧ嚎鐜�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/platformOnlineRate")
+ @ApiOperation(value = "骞冲彴鍦ㄧ嚎鐜�", notes = "骞冲彴鍦ㄧ嚎鐜�")
+ @PreAuthorize("@ss.hasPermi('platformOnline:page')")
+ public Result platformOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return platformOnlineService.page(query);
+ }
+
+ /**
+ * 瑙嗛锛氫竴鏈轰竴妗f敞鍐岀巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoOneMachineDocumentRegister")
+ public Result videoOneMachineDocumentRegister(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoOneMachineDocumentRegister(query);
+ }
+
+ /**
+ * 瑙嗛锛氫竴鏈轰竴妗e悎鏍肩巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoOneMachineDocumentQualified")
+ public Result videoOneMachineDocumentQualified(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoOneMachineDocumentQualified(query);
+ }
+
+ /**
+ * 瑙嗛锛氭。妗堣�冩牳姣�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoAssessmentFileRatio")
+ public Result videoAssessmentFileRatio(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoAssessmentFileRatio(query);
+ }
+
+ /**
+ * 瑙嗛锛氱偣浣嶅湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoPointOnlineRate")
+ public Result videoPointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoPointOnlineRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶儴绾х偣浣嶅湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoMinistrySiteOnline")
+ public Result videoMinistrySiteOnline(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.deptVideoPointOnlineRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶儴绾у贰妫�褰曞儚鍙敤鐜�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoMinistryVideoAvailable")
+ public Result videoMinistryVideoAvailable(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.deptVideoAvailabilityRate(query);
+ }
+
+ @PutMapping("/videoMinistryVideoAvailable/updateDynamicValue")
+ public Result updateDynamicValue(@RequestBody UpdateDynamicValueForm form){
+ return dataCenterService.updateDynamicValue(form);
+ }
+ /**
+ * 瑙嗛锛氬綍鍍忓彲鐢ㄧ巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoAvailabilityRate")
+ public Result videoAvailabilityRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoAvailabilityRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶噸鐐圭偣浣嶅綍鍍忓彲鐢ㄧ巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoImportantPointAvailabilityRate")
+ public Result videoImportantPointAvailabilityRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoImportantPointAvailabilityRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶噸鐐圭偣浣嶆爣娉ㄦ纭巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoImportantPointLabelingAccuracy")
+ public Result videoImportantPointLabelingAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ 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
+ */
+ @PostMapping("/videoCheckTimeAccuracy")
+ public Result videoCheckTimeAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoCheckTimeAccuracy(query);
+ }
+
+ /**
+ * 瑙嗛锛氶噸鐐圭偣浣嶆牎鏃舵纭巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoImportantPointCheckTimeAccuracy")
+ public Result videoImportantPointCheckTimeAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoImportantPointCheckTimeAccuracy(query);
+ }
+
+ /**
+ * 瑙嗛锛氶噸鐐圭偣浣嶅湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoImportantPointOnlineRate")
+ public Result videoImportantPointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoImportantPointOnlineRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶噸鐐规寚鎸ュ浘鍍忓湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoImportantPointImageOnlineRate")
+ public Result videoImportantPointImageOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoImportantPointImageOnlineRate(query);
+ }
+ /**
+ * 瑙嗛锛氬浘鍍忚祫婧愬畨鍏ㄧ鐞�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/videoImageResourceSecurity")
+ public Result videoImageResourceSecurity(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.videoImageResourceSecurity(query);
+ }
+
+ /**
+ * 杞﹁締锛氳鍥惧簱瀵规帴绋冲畾鎬�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleViewDockStable")
+ public Result vehicleViewDockStable(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleViewDockStable(query);
+ }
+
+ /**
+ * 杞﹁締锛氱偣浣嶅湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehiclePointOnlineRate")
+ public Result vehiclePointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehiclePointOnlineRate(query);
+ }
+
+ /**
+ * 杞﹁締锛氫簰鑱旂綉鍗″彛璁惧鐩綍涓�鑷存��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleNetDeviceDirectoryConsistency")
+ public Result vehicleNetDeviceDirectoryConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleNetDeviceDirectoryConsistency(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙d俊鎭噰闆嗗噯纭巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleCollectionConsistency")
+ public Result vehicleCollectionConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleCollectionConsistency(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙h澶囨姄鎷嶆暟鎹畬鏁存��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleCollectionDataIntegrity")
+ public Result vehicleCollectionDataIntegrity(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleCollectionDataIntegrity(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙h澶囨姄鎷嶆暟鎹噯纭��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleCollectionDataCaptured")
+ public Result vehicleCollectionDataCaptured(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleCollectionDataCaptured(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙h澶囨椂閽熷噯纭��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleClockAccuracy")
+ public Result vehicleClockAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleClockAccuracy(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙h澶囨姄鎷嶆暟鎹笂浼犲強鏃舵��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleTimelyUploadAccuracy")
+ public Result vehicleTimelyUploadAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleTimelyUploadAccuracy(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙h澶噓rl鍙敤鎬�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleUrlAccuracy")
+ public Result vehicleUrlAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleUrlAccuracy(query);
+ }
+
+ /**
+ * 杞﹁締锛氳溅杈嗗崱鍙h澶囨姄鎷嶆暟鎹ぇ鍥惧彲鐢ㄦ��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/vehicleBigImgAccuracy")
+ public Result vehicleBigImgAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return dataCenterService.vehicleBigImgAccuracy(query);
+ }
+
+
+ /**
+ * 浜鸿劯锛氳鍥惧簱瀵规帴绋冲畾鎬�
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceViewDockStable")
+ public Result faceViewDockStable(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceViewDockStable(query));
+ }
+
+ /**
+ * 浜鸿劯锛氱偣浣嶅湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/facePointOnlineRate")
+ public Result facePointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.facePointOnlineRate(query));
+ }
+
+ /**
+ * 浜鸿劯锛氱洰褰曚竴鑷寸巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceDirectoryConsistency")
+ public Result faceDirectoryConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceDirectoryConsistency(query));
+ }
+
+ /**
+ * 浜鸿劯锛氫汉鑴稿崱鍙d俊鎭噰闆嗗噯纭巼
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceCollectionConsistency")
+ public Result faceCollectionConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceCollectionConsistency(query));
+ }
+
+ /**
+ * 浜鸿劯锛氳澶囨姄鎷嶅浘鐗囧悎鏍兼��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceImgQualification")
+ public Result faceImgQualification(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceImgQualification(query));
+ }
+
+ /**
+ * 浜鸿劯锛氳澶囨姄鎷嶅浘鐗囨椂閽熷噯纭��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceCapturesImagesAccuracy")
+ public Result faceCapturesImagesAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceCapturesImagesAccuracy(query));
+ }
+
+ /**
+ * 浜鸿劯锛氭姄鎷嶄汉鑴告暟鎹笂浼犲強鏃舵��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceTimelyUpload")
+ public Result faceTimelyUpload(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceTimelyUpload(query));
+ }
+
+ /**
+ * 浜鸿劯锛氫汉鑴稿崱鍙h澶囨姄鎷嶆暟鎹ぇ鍥惧彲鐢ㄦ��
+ *
+ * @param query
+ * @return
+ */
+ @PostMapping("/faceAvailabilityOfLargeImg")
+ public Result faceAvailabilityOfLargeImg(@RequestBody DataCenterQuery query) {
+ query.setTime();
+ return (dataCenterService.faceAvailabilityOfLargeImg(query));
+ }
}
--
Gitblit v1.8.0