From 6293aab5383150da9769353c1c350d9156a9ca55 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期日, 01 九月 2024 14:00:05 +0800
Subject: [PATCH] 考核积分排序
---
ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java | 145 +++++++++++++++++++++++++++++-------------------
1 files changed, 88 insertions(+), 57 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 f7e36e5..78a8c6f 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
@@ -2,8 +2,12 @@
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 io.swagger.annotations.ApiOperation;
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;
@@ -20,16 +24,33 @@
public class DataCenterController {
private final DataCenterService dataCenterService;
+ private final PlatformOnlineService platformOnlineService;
+ private final ITMonitorService monitorService;
/**
- * 瑙嗛锛氱偣浣嶅湪绾跨巼
+ * 璧勪骇绠$悊
*
* @param query
* @return
*/
- @GetMapping("/videoPointOnlineRate")
- public Result videoPointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoPointOnlineRate(query));
+ @GetMapping("/assetManagement")
+ @ApiOperation(value = "璧勪骇绠$悊", notes = "璧勪骇绠$悊")
+ @PreAuthorize("@ss.hasPermi('assetManagement:page')")
+ public Result assetManagement(DataCenterQuery query) {
+ return monitorService.assetManagement(query);
+ }
+
+ /**
+ * 骞冲彴鍦ㄧ嚎鐜�
+ *
+ * @param query
+ * @return
+ */
+ @GetMapping("/platformOnlineRate")
+ @ApiOperation(value = "骞冲彴鍦ㄧ嚎鐜�", notes = "骞冲彴鍦ㄧ嚎鐜�")
+ @PreAuthorize("@ss.hasPermi('platformOnline:page')")
+ public Result platformOnlineRate(DataCenterQuery query) {
+ return platformOnlineService.page(query);
}
/**
@@ -40,7 +61,7 @@
*/
@GetMapping("/videoOneMachineDocumentRegister")
public Result videoOneMachineDocumentRegister(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoOneMachineDocumentRegister(query));
+ return dataCenterService.videoOneMachineDocumentRegister(query);
}
/**
@@ -51,7 +72,7 @@
*/
@GetMapping("/videoOneMachineDocumentQualified")
public Result videoOneMachineDocumentQualified(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoOneMachineDocumentQualified(query));
+ return dataCenterService.videoOneMachineDocumentQualified(query);
}
/**
@@ -62,18 +83,40 @@
*/
@GetMapping("/videoAssessmentFileRatio")
public Result videoAssessmentFileRatio(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoAssessmentFileRatio(query));
+ return dataCenterService.videoAssessmentFileRatio(query);
}
/**
- * 瑙嗛锛氬綍鍍忓彲鐢ㄧ巼
+ * 瑙嗛锛氱偣浣嶅湪绾跨巼
*
* @param query
* @return
*/
- @GetMapping("/videoAvailabilityRate")
- public Result videoAvailabilityRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoAvailabilityRate(query));
+ @GetMapping("/videoPointOnlineRate")
+ public Result videoPointOnlineRate(DataCenterQuery query) {
+ return dataCenterService.videoPointOnlineRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶儴绾х偣浣嶅湪绾跨巼
+ *
+ * @param query
+ * @return
+ */
+ @GetMapping("/videoMinistrySiteOnline")
+ public Result videoMinistrySiteOnline(DataCenterQuery query) {
+ return dataCenterService.videoAvailabilityRate(query);
+ }
+
+ /**
+ * 瑙嗛锛氶儴绾у贰妫�褰曞儚鍙敤鐜�
+ *
+ * @param query
+ * @return
+ */
+ @GetMapping("/videoMinistryVideoAvailable")
+ public Result videoMinistryVideoAvailable(DataCenterQuery query) {
+ return dataCenterService.videoLabelingAccuracy(query);
}
/**
@@ -84,18 +127,7 @@
*/
@GetMapping("/videoImportantPointAvailabilityRate")
public Result videoImportantPointAvailabilityRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointAvailabilityRate(query));
- }
-
- /**
- * 瑙嗛锛氭爣娉ㄦ纭巼
- *
- * @param query
- * @return
- */
- @GetMapping("/videoLabelingAccuracy")
- public Result videoLabelingAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoLabelingAccuracy(query));
+ return dataCenterService.videoImportantPointAvailabilityRate(query);
}
/**
@@ -106,7 +138,7 @@
*/
@GetMapping("/videoImportantPointLabelingAccuracy")
public Result videoImportantPointLabelingAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointLabelingAccuracy(query));
+ return dataCenterService.videoImportantPointLabelingAccuracy(query);
}
/**
@@ -117,7 +149,7 @@
*/
@GetMapping("/videoCheckTimeAccuracy")
public Result videoCheckTimeAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoCheckTimeAccuracy(query));
+ return dataCenterService.videoCheckTimeAccuracy(query);
}
/**
@@ -128,7 +160,7 @@
*/
@GetMapping("/videoImportantPointCheckTimeAccuracy")
public Result videoImportantPointCheckTimeAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointCheckTimeAccuracy(query));
+ return dataCenterService.videoImportantPointCheckTimeAccuracy(query);
}
/**
@@ -139,7 +171,7 @@
*/
@GetMapping("/videoImportantPointOnlineRate")
public Result videoImportantPointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointOnlineRate(query));
+ return dataCenterService.videoImportantPointOnlineRate(query);
}
/**
@@ -150,12 +182,18 @@
*/
@GetMapping("/videoImportantPointImageOnlineRate")
public Result videoImportantPointImageOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointImageOnlineRate(query));
+ return dataCenterService.videoImportantPointImageOnlineRate(query);
}
-
-
-
-
+ /**
+ * 瑙嗛锛氬浘鍍忚祫婧愬畨鍏ㄧ鐞�
+ *
+ * @param query
+ * @return
+ */
+ @GetMapping("/videoImageResourceSecurity")
+ public Result videoImageResourceSecurity(DataCenterQuery query) {
+ return dataCenterService.videoImageResourceSecurity(query);
+ }
/**
* 杞﹁締锛氳鍥惧簱瀵规帴绋冲畾鎬�
@@ -165,7 +203,7 @@
*/
@GetMapping("/vehicleViewDockStable")
public Result vehicleViewDockStable(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleViewDockStable(query));
+ return dataCenterService.vehicleViewDockStable(query);
}
/**
@@ -176,7 +214,7 @@
*/
@GetMapping("/vehiclePointOnlineRate")
public Result vehiclePointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehiclePointOnlineRate(query));
+ return dataCenterService.vehiclePointOnlineRate(query);
}
/**
@@ -187,7 +225,7 @@
*/
@GetMapping("/vehicleNetDeviceDirectoryConsistency")
public Result vehicleNetDeviceDirectoryConsistency(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleNetDeviceDirectoryConsistency(query));
+ return dataCenterService.vehicleNetDeviceDirectoryConsistency(query);
}
/**
@@ -198,7 +236,7 @@
*/
@GetMapping("/vehicleCollectionConsistency")
public Result vehicleCollectionConsistency(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleCollectionConsistency(query));
+ return dataCenterService.vehicleCollectionConsistency(query);
}
/**
@@ -209,7 +247,7 @@
*/
@GetMapping("/vehicleCollectionDataIntegrity")
public Result vehicleCollectionDataIntegrity(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleCollectionDataIntegrity(query));
+ return dataCenterService.vehicleCollectionDataIntegrity(query);
}
/**
@@ -220,7 +258,7 @@
*/
@GetMapping("/vehicleCollectionDataCaptured")
public Result vehicleCollectionDataCaptured(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleCollectionDataCaptured(query));
+ return dataCenterService.vehicleCollectionDataCaptured(query);
}
/**
@@ -231,7 +269,7 @@
*/
@GetMapping("/vehicleClockAccuracy")
public Result vehicleClockAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleClockAccuracy(query));
+ return dataCenterService.vehicleClockAccuracy(query);
}
/**
@@ -242,7 +280,7 @@
*/
@GetMapping("/vehicleTimelyUploadAccuracy")
public Result vehicleTimelyUploadAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleTimelyUploadAccuracy(query));
+ return dataCenterService.vehicleTimelyUploadAccuracy(query);
}
/**
@@ -253,7 +291,7 @@
*/
@GetMapping("/vehicleUrlAccuracy")
public Result vehicleUrlAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleUrlAccuracy(query));
+ return dataCenterService.vehicleUrlAccuracy(query);
}
/**
@@ -264,15 +302,8 @@
*/
@GetMapping("/vehicleBigImgAccuracy")
public Result vehicleBigImgAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleBigImgAccuracy(query));
+ return dataCenterService.vehicleBigImgAccuracy(query);
}
-
-
-
-
-
-
-
/**
@@ -283,7 +314,7 @@
*/
@GetMapping("/faceViewDockStable")
public Result faceViewDockStable(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceViewDockStable(query));
+ return (dataCenterService.faceViewDockStable(query));
}
/**
@@ -294,7 +325,7 @@
*/
@GetMapping("/facePointOnlineRate")
public Result facePointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.facePointOnlineRate(query));
+ return (dataCenterService.facePointOnlineRate(query));
}
/**
@@ -305,7 +336,7 @@
*/
@GetMapping("/faceDirectoryConsistency")
public Result faceDirectoryConsistency(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceDirectoryConsistency(query));
+ return (dataCenterService.faceDirectoryConsistency(query));
}
/**
@@ -316,7 +347,7 @@
*/
@GetMapping("/faceCollectionConsistency")
public Result faceCollectionConsistency(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceCollectionConsistency(query));
+ return (dataCenterService.faceCollectionConsistency(query));
}
/**
@@ -327,7 +358,7 @@
*/
@GetMapping("/faceImgQualification")
public Result faceImgQualification(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceImgQualification(query));
+ return (dataCenterService.faceImgQualification(query));
}
/**
@@ -338,7 +369,7 @@
*/
@GetMapping("/faceCapturesImagesAccuracy")
public Result faceCapturesImagesAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceCapturesImagesAccuracy(query));
+ return (dataCenterService.faceCapturesImagesAccuracy(query));
}
/**
@@ -349,7 +380,7 @@
*/
@GetMapping("/faceTimelyUpload")
public Result faceTimelyUpload(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceTimelyUpload(query));
+ return (dataCenterService.faceTimelyUpload(query));
}
/**
@@ -360,6 +391,6 @@
*/
@GetMapping("/faceAvailabilityOfLargeImg")
public Result faceAvailabilityOfLargeImg(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.faceAvailabilityOfLargeImg(query));
+ return (dataCenterService.faceAvailabilityOfLargeImg(query));
}
}
--
Gitblit v1.8.0