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 | 294 +++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 205 insertions(+), 89 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 4758d4d..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,16 +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.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+
+import java.io.IOException;
/**
* 鏁版嵁涓績鎺ュ彛
@@ -33,35 +37,45 @@
* @param query
* @return
*/
- @GetMapping("/assetManagement")
+ @PostMapping("/assetManagement")
@ApiOperation(value = "璧勪骇绠$悊", notes = "璧勪骇绠$悊")
@PreAuthorize("@ss.hasPermi('assetManagement:page')")
- public Result assetManagement(DataCenterQuery query) {
+ 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
*/
- @GetMapping("/platformOnlineRate")
+ @PostMapping("/platformOnlineRate")
@ApiOperation(value = "骞冲彴鍦ㄧ嚎鐜�", notes = "骞冲彴鍦ㄧ嚎鐜�")
@PreAuthorize("@ss.hasPermi('platformOnline:page')")
- public Result platformOnlineRate(DataCenterQuery query) {
+ public Result platformOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return platformOnlineService.page(query);
- }
-
- /**
- * 瑙嗛锛氱偣浣嶅湪绾跨巼
- *
- * @param query
- * @return
- */
- @GetMapping("/videoPointOnlineRate")
- public Result videoPointOnlineRate(DataCenterQuery query) {
- return dataCenterService.videoPointOnlineRate(query);
}
/**
@@ -70,8 +84,9 @@
* @param query
* @return
*/
- @GetMapping("/videoOneMachineDocumentRegister")
- public Result videoOneMachineDocumentRegister(DataCenterQuery query) {
+ @PostMapping("/videoOneMachineDocumentRegister")
+ public Result videoOneMachineDocumentRegister(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoOneMachineDocumentRegister(query);
}
@@ -81,8 +96,9 @@
* @param query
* @return
*/
- @GetMapping("/videoOneMachineDocumentQualified")
- public Result videoOneMachineDocumentQualified(DataCenterQuery query) {
+ @PostMapping("/videoOneMachineDocumentQualified")
+ public Result videoOneMachineDocumentQualified(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoOneMachineDocumentQualified(query);
}
@@ -92,10 +108,53 @@
* @param query
* @return
*/
- @GetMapping("/videoAssessmentFileRatio")
- public Result videoAssessmentFileRatio(DataCenterQuery query) {
+ @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);
+ }
+
/**
* 瑙嗛锛氬綍鍍忓彲鐢ㄧ巼
@@ -103,8 +162,9 @@
* @param query
* @return
*/
- @GetMapping("/videoAvailabilityRate")
- public Result videoAvailabilityRate(DataCenterQuery query) {
+ @PostMapping("/videoAvailabilityRate")
+ public Result videoAvailabilityRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoAvailabilityRate(query);
}
@@ -114,20 +174,10 @@
* @param query
* @return
*/
- @GetMapping("/videoImportantPointAvailabilityRate")
- public Result videoImportantPointAvailabilityRate(DataCenterQuery query) {
+ @PostMapping("/videoImportantPointAvailabilityRate")
+ public Result videoImportantPointAvailabilityRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoImportantPointAvailabilityRate(query);
- }
-
- /**
- * 瑙嗛锛氭爣娉ㄦ纭巼
- *
- * @param query
- * @return
- */
- @GetMapping("/videoLabelingAccuracy")
- public Result videoLabelingAccuracy(DataCenterQuery query) {
- return dataCenterService.videoLabelingAccuracy(query);
}
/**
@@ -136,19 +186,63 @@
* @param query
* @return
*/
- @GetMapping("/videoImportantPointLabelingAccuracy")
- public Result videoImportantPointLabelingAccuracy(DataCenterQuery query) {
+ @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
*/
- @GetMapping("/videoCheckTimeAccuracy")
- public Result videoCheckTimeAccuracy(DataCenterQuery query) {
+ @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);
}
@@ -158,8 +252,9 @@
* @param query
* @return
*/
- @GetMapping("/videoImportantPointCheckTimeAccuracy")
- public Result videoImportantPointCheckTimeAccuracy(DataCenterQuery query) {
+ @PostMapping("/videoImportantPointCheckTimeAccuracy")
+ public Result videoImportantPointCheckTimeAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoImportantPointCheckTimeAccuracy(query);
}
@@ -169,8 +264,9 @@
* @param query
* @return
*/
- @GetMapping("/videoImportantPointOnlineRate")
- public Result videoImportantPointOnlineRate(DataCenterQuery query) {
+ @PostMapping("/videoImportantPointOnlineRate")
+ public Result videoImportantPointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoImportantPointOnlineRate(query);
}
@@ -180,8 +276,9 @@
* @param query
* @return
*/
- @GetMapping("/videoImportantPointImageOnlineRate")
- public Result videoImportantPointImageOnlineRate(DataCenterQuery query) {
+ @PostMapping("/videoImportantPointImageOnlineRate")
+ public Result videoImportantPointImageOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoImportantPointImageOnlineRate(query);
}
/**
@@ -190,8 +287,9 @@
* @param query
* @return
*/
- @GetMapping("/videoImageResourceSecurity")
- public Result videoImageResourceSecurity(DataCenterQuery query) {
+ @PostMapping("/videoImageResourceSecurity")
+ public Result videoImageResourceSecurity(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.videoImageResourceSecurity(query);
}
@@ -201,8 +299,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleViewDockStable")
- public Result vehicleViewDockStable(DataCenterQuery query) {
+ @PostMapping("/vehicleViewDockStable")
+ public Result vehicleViewDockStable(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleViewDockStable(query);
}
@@ -212,8 +311,9 @@
* @param query
* @return
*/
- @GetMapping("/vehiclePointOnlineRate")
- public Result vehiclePointOnlineRate(DataCenterQuery query) {
+ @PostMapping("/vehiclePointOnlineRate")
+ public Result vehiclePointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehiclePointOnlineRate(query);
}
@@ -223,8 +323,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleNetDeviceDirectoryConsistency")
- public Result vehicleNetDeviceDirectoryConsistency(DataCenterQuery query) {
+ @PostMapping("/vehicleNetDeviceDirectoryConsistency")
+ public Result vehicleNetDeviceDirectoryConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleNetDeviceDirectoryConsistency(query);
}
@@ -234,8 +335,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleCollectionConsistency")
- public Result vehicleCollectionConsistency(DataCenterQuery query) {
+ @PostMapping("/vehicleCollectionConsistency")
+ public Result vehicleCollectionConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleCollectionConsistency(query);
}
@@ -245,8 +347,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleCollectionDataIntegrity")
- public Result vehicleCollectionDataIntegrity(DataCenterQuery query) {
+ @PostMapping("/vehicleCollectionDataIntegrity")
+ public Result vehicleCollectionDataIntegrity(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleCollectionDataIntegrity(query);
}
@@ -256,8 +359,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleCollectionDataCaptured")
- public Result vehicleCollectionDataCaptured(DataCenterQuery query) {
+ @PostMapping("/vehicleCollectionDataCaptured")
+ public Result vehicleCollectionDataCaptured(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleCollectionDataCaptured(query);
}
@@ -267,8 +371,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleClockAccuracy")
- public Result vehicleClockAccuracy(DataCenterQuery query) {
+ @PostMapping("/vehicleClockAccuracy")
+ public Result vehicleClockAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleClockAccuracy(query);
}
@@ -278,8 +383,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleTimelyUploadAccuracy")
- public Result vehicleTimelyUploadAccuracy(DataCenterQuery query) {
+ @PostMapping("/vehicleTimelyUploadAccuracy")
+ public Result vehicleTimelyUploadAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleTimelyUploadAccuracy(query);
}
@@ -289,8 +395,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleUrlAccuracy")
- public Result vehicleUrlAccuracy(DataCenterQuery query) {
+ @PostMapping("/vehicleUrlAccuracy")
+ public Result vehicleUrlAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleUrlAccuracy(query);
}
@@ -300,8 +407,9 @@
* @param query
* @return
*/
- @GetMapping("/vehicleBigImgAccuracy")
- public Result vehicleBigImgAccuracy(DataCenterQuery query) {
+ @PostMapping("/vehicleBigImgAccuracy")
+ public Result vehicleBigImgAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
return dataCenterService.vehicleBigImgAccuracy(query);
}
@@ -312,8 +420,9 @@
* @param query
* @return
*/
- @GetMapping("/faceViewDockStable")
- public Result faceViewDockStable(DataCenterQuery query) {
+ @PostMapping("/faceViewDockStable")
+ public Result faceViewDockStable(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceViewDockStable(query));
}
@@ -323,8 +432,9 @@
* @param query
* @return
*/
- @GetMapping("/facePointOnlineRate")
- public Result facePointOnlineRate(DataCenterQuery query) {
+ @PostMapping("/facePointOnlineRate")
+ public Result facePointOnlineRate(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.facePointOnlineRate(query));
}
@@ -334,8 +444,9 @@
* @param query
* @return
*/
- @GetMapping("/faceDirectoryConsistency")
- public Result faceDirectoryConsistency(DataCenterQuery query) {
+ @PostMapping("/faceDirectoryConsistency")
+ public Result faceDirectoryConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceDirectoryConsistency(query));
}
@@ -345,8 +456,9 @@
* @param query
* @return
*/
- @GetMapping("/faceCollectionConsistency")
- public Result faceCollectionConsistency(DataCenterQuery query) {
+ @PostMapping("/faceCollectionConsistency")
+ public Result faceCollectionConsistency(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceCollectionConsistency(query));
}
@@ -356,8 +468,9 @@
* @param query
* @return
*/
- @GetMapping("/faceImgQualification")
- public Result faceImgQualification(DataCenterQuery query) {
+ @PostMapping("/faceImgQualification")
+ public Result faceImgQualification(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceImgQualification(query));
}
@@ -367,8 +480,9 @@
* @param query
* @return
*/
- @GetMapping("/faceCapturesImagesAccuracy")
- public Result faceCapturesImagesAccuracy(DataCenterQuery query) {
+ @PostMapping("/faceCapturesImagesAccuracy")
+ public Result faceCapturesImagesAccuracy(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceCapturesImagesAccuracy(query));
}
@@ -378,8 +492,9 @@
* @param query
* @return
*/
- @GetMapping("/faceTimelyUpload")
- public Result faceTimelyUpload(DataCenterQuery query) {
+ @PostMapping("/faceTimelyUpload")
+ public Result faceTimelyUpload(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceTimelyUpload(query));
}
@@ -389,8 +504,9 @@
* @param query
* @return
*/
- @GetMapping("/faceAvailabilityOfLargeImg")
- public Result faceAvailabilityOfLargeImg(DataCenterQuery query) {
+ @PostMapping("/faceAvailabilityOfLargeImg")
+ public Result faceAvailabilityOfLargeImg(@RequestBody DataCenterQuery query) {
+ query.setTime();
return (dataCenterService.faceAvailabilityOfLargeImg(query));
}
}
--
Gitblit v1.8.0