From 64efb660b2c119c00432434c0f651f8996483f18 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期五, 21 二月 2025 15:51:13 +0800 Subject: [PATCH] OSD大华数据格式+数据中心重点标签统计数 --- ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 49 insertions(+), 6 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 dba8912..e1cd357 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,11 +1,14 @@ package com.ycl.platform.controller; +import annotation.Log; 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.*; @@ -38,7 +41,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(); + } /** * 骞冲彴鍦ㄧ嚎鐜� * @@ -110,7 +132,7 @@ @PostMapping("/videoMinistrySiteOnline") public Result videoMinistrySiteOnline(@RequestBody DataCenterQuery query) { query.setTime(); - return dataCenterService.videoPointOnlineRate(query); + return dataCenterService.deptVideoPointOnlineRate(query); } /** @@ -122,8 +144,19 @@ @PostMapping("/videoMinistryVideoAvailable") public Result videoMinistryVideoAvailable(@RequestBody DataCenterQuery query) { query.setTime(); - // TODO 鍋氶儴绾ф暟鎹尯鍒� - return dataCenterService.videoLabelingAccuracy(query); + return dataCenterService.deptVideoAvailabilityRate(query); + } + + /** + * 瑙嗛锛氬綍鍍忓彲鐢ㄧ巼 + * + * @param query + * @return + */ + @PostMapping("/videoAvailabilityRate") + public Result videoAvailabilityRate(@RequestBody DataCenterQuery query) { + query.setTime(); + return dataCenterService.videoAvailabilityRate(query); } /** @@ -149,9 +182,19 @@ query.setTime(); return dataCenterService.videoImportantPointLabelingAccuracy(query); } - /** - * 瑙嗛锛氭牎鏃舵纭巼 + * 瑙嗛锛氬鍑洪噸鐐圭偣浣嶆爣娉ㄦ纭巼 + * + * @param query + * @return + */ + @PostMapping("/videoImportantPointLabelingAccuracy/export") + public void videoImportantPointLabelingAccuracyExport(HttpServletResponse response,DataCenterQuery query) { + query.setTime(); + dataCenterService.videoImportantPointLabelingAccuracyExport(response,query); + } + /** + * 瑙嗛锛氭牎鏃舵纭巼 锛堟柊瑙勫垯宸茬粡寮冪敤锛� * * @param query * @return -- Gitblit v1.8.0