fuliqi
2025-01-16 edc7172b312e0aec94362b651e2f7145e0c357fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package com.ycl.platform.controller;
 
import com.ycl.platform.domain.query.DashboardQuery;
import com.ycl.platform.service.*;
import com.ycl.system.service.ISysDeptService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.AjaxResult;
 
/**
 * 运维考核大屏
 *
 * @author gonghl
 * @since 2024/8/6 下午 2:35
 */
 
@RestController
@RequiredArgsConstructor
@RequestMapping("/dashboard")
public class DashboardController {
 
    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;
    private final PlatformService platformService;
 
    @GetMapping("/department")
    public AjaxResult department() {
        return AjaxResult.success(deptService.dashboard());
    }
 
    @GetMapping("/workOrder/total")
    public AjaxResult workOrderTotal(DashboardQuery dashboardQuery) {
        return AjaxResult.success(workOrderService.workOrderTotal(dashboardQuery));
    }
 
    @GetMapping("/workOrder/region")
    public AjaxResult workOrderRegion(DashboardQuery dashboardQuery) {
        return AjaxResult.success(workOrderService.workOrderRegion(dashboardQuery));
    }
 
    @GetMapping("/monitor/total")
    public AjaxResult monitorTotal(DashboardQuery dashboardQuery) {
        return AjaxResult.success(monitorService.monitorTotal(dashboardQuery));
    }
 
    @GetMapping("/monitor/rate")
    public AjaxResult monitorRate(DashboardQuery dashboardQuery) {
        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));
    }
    @GetMapping("/platform")
    public AjaxResult platform(DashboardQuery dashboardQuery) {
        return AjaxResult.success(platformService.dashboard(dashboardQuery));
    }
}