From 5da2c5431b2663141a278afd2858101a2e98f814 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 15 八月 2024 15:41:59 +0800
Subject: [PATCH] 一机一档注册率、档案考核比
---
ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java | 62 ++++++++++++++++++++-----------
1 files changed, 40 insertions(+), 22 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..1a57746 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,9 +1,13 @@
package com.ycl.platform.controller;
import com.ycl.platform.domain.query.DataCenterQuery;
+import com.ycl.platform.domain.query.PlatformOnlineQuery;
import com.ycl.platform.service.DataCenterService;
+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,6 +24,20 @@
public class DataCenterController {
private final DataCenterService dataCenterService;
+ private final PlatformOnlineService platformOnlineService;
+
+ /**
+ * 骞冲彴鍦ㄧ嚎鐜�
+ *
+ * @param query
+ * @return
+ */
+ @GetMapping("/platformOnlineRate")
+ @ApiOperation(value = "骞冲彴鍦ㄧ嚎鐜�", notes = "骞冲彴鍦ㄧ嚎鐜�")
+ @PreAuthorize("hasAuthority('platformOnline:page')")
+ public Result platformOnlineRate(DataCenterQuery query) {
+ return platformOnlineService.page(query);
+ }
/**
* 瑙嗛锛氱偣浣嶅湪绾跨巼
@@ -29,7 +47,7 @@
*/
@GetMapping("/videoPointOnlineRate")
public Result videoPointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoPointOnlineRate(query));
+ return dataCenterService.videoPointOnlineRate(query);
}
/**
@@ -40,7 +58,7 @@
*/
@GetMapping("/videoOneMachineDocumentRegister")
public Result videoOneMachineDocumentRegister(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoOneMachineDocumentRegister(query));
+ return dataCenterService.videoOneMachineDocumentRegister(query);
}
/**
@@ -51,7 +69,7 @@
*/
@GetMapping("/videoOneMachineDocumentQualified")
public Result videoOneMachineDocumentQualified(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoOneMachineDocumentQualified(query));
+ return dataCenterService.videoOneMachineDocumentQualified(query);
}
/**
@@ -62,7 +80,7 @@
*/
@GetMapping("/videoAssessmentFileRatio")
public Result videoAssessmentFileRatio(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoAssessmentFileRatio(query));
+ return dataCenterService.videoAssessmentFileRatio(query);
}
/**
@@ -73,7 +91,7 @@
*/
@GetMapping("/videoAvailabilityRate")
public Result videoAvailabilityRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoAvailabilityRate(query));
+ return dataCenterService.videoAvailabilityRate(query);
}
/**
@@ -84,7 +102,7 @@
*/
@GetMapping("/videoImportantPointAvailabilityRate")
public Result videoImportantPointAvailabilityRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointAvailabilityRate(query));
+ return dataCenterService.videoImportantPointAvailabilityRate(query);
}
/**
@@ -95,7 +113,7 @@
*/
@GetMapping("/videoLabelingAccuracy")
public Result videoLabelingAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoLabelingAccuracy(query));
+ return dataCenterService.videoLabelingAccuracy(query);
}
/**
@@ -106,7 +124,7 @@
*/
@GetMapping("/videoImportantPointLabelingAccuracy")
public Result videoImportantPointLabelingAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointLabelingAccuracy(query));
+ return dataCenterService.videoImportantPointLabelingAccuracy(query);
}
/**
@@ -117,7 +135,7 @@
*/
@GetMapping("/videoCheckTimeAccuracy")
public Result videoCheckTimeAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoCheckTimeAccuracy(query));
+ return dataCenterService.videoCheckTimeAccuracy(query);
}
/**
@@ -128,7 +146,7 @@
*/
@GetMapping("/videoImportantPointCheckTimeAccuracy")
public Result videoImportantPointCheckTimeAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointCheckTimeAccuracy(query));
+ return dataCenterService.videoImportantPointCheckTimeAccuracy(query);
}
/**
@@ -139,7 +157,7 @@
*/
@GetMapping("/videoImportantPointOnlineRate")
public Result videoImportantPointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointOnlineRate(query));
+ return dataCenterService.videoImportantPointOnlineRate(query);
}
/**
@@ -150,7 +168,7 @@
*/
@GetMapping("/videoImportantPointImageOnlineRate")
public Result videoImportantPointImageOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.videoImportantPointImageOnlineRate(query));
+ return dataCenterService.videoImportantPointImageOnlineRate(query);
}
@@ -165,7 +183,7 @@
*/
@GetMapping("/vehicleViewDockStable")
public Result vehicleViewDockStable(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleViewDockStable(query));
+ return dataCenterService.vehicleViewDockStable(query);
}
/**
@@ -176,7 +194,7 @@
*/
@GetMapping("/vehiclePointOnlineRate")
public Result vehiclePointOnlineRate(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehiclePointOnlineRate(query));
+ return dataCenterService.vehiclePointOnlineRate(query);
}
/**
@@ -187,7 +205,7 @@
*/
@GetMapping("/vehicleNetDeviceDirectoryConsistency")
public Result vehicleNetDeviceDirectoryConsistency(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleNetDeviceDirectoryConsistency(query));
+ return dataCenterService.vehicleNetDeviceDirectoryConsistency(query);
}
/**
@@ -198,7 +216,7 @@
*/
@GetMapping("/vehicleCollectionConsistency")
public Result vehicleCollectionConsistency(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleCollectionConsistency(query));
+ return dataCenterService.vehicleCollectionConsistency(query);
}
/**
@@ -209,7 +227,7 @@
*/
@GetMapping("/vehicleCollectionDataIntegrity")
public Result vehicleCollectionDataIntegrity(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleCollectionDataIntegrity(query));
+ return dataCenterService.vehicleCollectionDataIntegrity(query);
}
/**
@@ -220,7 +238,7 @@
*/
@GetMapping("/vehicleCollectionDataCaptured")
public Result vehicleCollectionDataCaptured(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleCollectionDataCaptured(query));
+ return dataCenterService.vehicleCollectionDataCaptured(query);
}
/**
@@ -231,7 +249,7 @@
*/
@GetMapping("/vehicleClockAccuracy")
public Result vehicleClockAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleClockAccuracy(query));
+ return dataCenterService.vehicleClockAccuracy(query);
}
/**
@@ -242,7 +260,7 @@
*/
@GetMapping("/vehicleTimelyUploadAccuracy")
public Result vehicleTimelyUploadAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleTimelyUploadAccuracy(query));
+ return dataCenterService.vehicleTimelyUploadAccuracy(query);
}
/**
@@ -253,7 +271,7 @@
*/
@GetMapping("/vehicleUrlAccuracy")
public Result vehicleUrlAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleUrlAccuracy(query));
+ return dataCenterService.vehicleUrlAccuracy(query);
}
/**
@@ -264,7 +282,7 @@
*/
@GetMapping("/vehicleBigImgAccuracy")
public Result vehicleBigImgAccuracy(DataCenterQuery query) {
- return Result.ok().data(dataCenterService.vehicleBigImgAccuracy(query));
+ return dataCenterService.vehicleBigImgAccuracy(query);
}
--
Gitblit v1.8.0