From d9e7d3b630c9d905bc1340fe61740712bb610fde Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 18 九月 2024 17:20:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
ycl-server/src/main/java/com/ycl/platform/controller/DashboardController.java | 25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/DashboardController.java b/ycl-server/src/main/java/com/ycl/platform/controller/DashboardController.java
index c81bf9c..5516a2b 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/DashboardController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/DashboardController.java
@@ -1,8 +1,7 @@
package com.ycl.platform.controller;
import com.ycl.platform.domain.query.DashboardQuery;
-import com.ycl.platform.service.ITMonitorService;
-import com.ycl.platform.service.WorkOrderService;
+import com.ycl.platform.service.*;
import com.ycl.system.service.ISysDeptService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
@@ -25,6 +24,10 @@
private final WorkOrderService workOrderService;
private final ITMonitorService monitorService;
private final ISysDeptService deptService;
+ private final ICheckIndexFaceService checkIndexFaceService;
+ private final ICheckIndexCarService checkIndexCarService;
+ private final ICheckIndexVideoService checkIndexVideoService;
+ private final ICheckScoreService checkScoreService;
@GetMapping("/department")
public AjaxResult department() {
@@ -51,5 +54,23 @@
return AjaxResult.success(monitorService.monitorRate(dashboardQuery));
}
+ @GetMapping("/check/face")
+ public AjaxResult checkFace(DashboardQuery dashboardQuery) {
+ return AjaxResult.success(checkIndexFaceService.dashboard(dashboardQuery));
+ }
+ @GetMapping("/check/car")
+ public AjaxResult checkCar(DashboardQuery dashboardQuery) {
+ return AjaxResult.success(checkIndexCarService.dashboard(dashboardQuery));
+ }
+
+ @GetMapping("/check/video")
+ public AjaxResult checkVideo(DashboardQuery dashboardQuery) {
+ return AjaxResult.success(checkIndexVideoService.dashboard(dashboardQuery));
+ }
+
+ @GetMapping("/check/score")
+ public AjaxResult checkScore(DashboardQuery dashboardQuery) {
+ return AjaxResult.success(checkScoreService.dashboard(dashboardQuery));
+ }
}
--
Gitblit v1.8.0