|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+package com.unis.visualization.modular.grainOilReserve.controller;
|
|
|
2
|
+
|
|
|
3
|
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
4
|
+import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
|
|
5
|
+import com.unis.common.pojo.CommonResult;
|
|
|
6
|
+import com.unis.reserveLayout.modular.dataSystemInfo.param.DataPageParam;
|
|
|
7
|
+import com.unis.visualization.modular.grainOilReserve.service.MonitorAIService;
|
|
|
8
|
+import io.swagger.annotations.Api;
|
|
|
9
|
+import io.swagger.annotations.ApiOperation;
|
|
|
10
|
+import org.springframework.validation.annotation.Validated;
|
|
|
11
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
12
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
13
|
+
|
|
|
14
|
+import javax.annotation.Resource;
|
|
|
15
|
+import java.util.List;
|
|
|
16
|
+import java.util.Map;
|
|
|
17
|
+
|
|
|
18
|
+/**
|
|
|
19
|
+ * 可视化-粮油储备控制器
|
|
|
20
|
+ *
|
|
|
21
|
+ * @author TS
|
|
|
22
|
+ * @date 2024/06/18 11:08
|
|
|
23
|
+ */
|
|
|
24
|
+@Api(tags = "可视化-摄像头视频监控")
|
|
|
25
|
+@ApiSupport(author = "UNIS_TEAM", order = 1)
|
|
|
26
|
+@RestController
|
|
|
27
|
+@Validated
|
|
|
28
|
+public class MonitorAIController {
|
|
|
29
|
+
|
|
|
30
|
+ @Resource
|
|
|
31
|
+ private MonitorAIService monitorAIService;
|
|
|
32
|
+
|
|
|
33
|
+
|
|
|
34
|
+ /**
|
|
|
35
|
+ * 视频AI分析预警-摄像头总数
|
|
|
36
|
+ *
|
|
|
37
|
+ * @author ZeroLiYi
|
|
|
38
|
+ * @date 2024/06/20 11:37
|
|
|
39
|
+ */
|
|
|
40
|
+ @ApiOperationSupport(order = 1)
|
|
|
41
|
+ @ApiOperation("监控在线情况统计 - 摄像头总数")
|
|
|
42
|
+ @GetMapping("/monitorAI/selectMonitorCount")
|
|
|
43
|
+ public CommonResult<Integer> selectMonitorCount() {
|
|
|
44
|
+ return CommonResult.data(monitorAIService.selectMonitorCount());
|
|
|
45
|
+ }
|
|
|
46
|
+
|
|
|
47
|
+ /**
|
|
|
48
|
+ * 视频AI分析预警-故障摄像头
|
|
|
49
|
+ *
|
|
|
50
|
+ * @author ZeroLiYi
|
|
|
51
|
+ * @date 2024/06/20 11:37
|
|
|
52
|
+ */
|
|
|
53
|
+ @ApiOperationSupport(order = 1)
|
|
|
54
|
+ @ApiOperation("监控在线情况统计 - 故障摄像头")
|
|
|
55
|
+ @GetMapping("/monitorAI/selectFaultMonitorCount")
|
|
|
56
|
+ public CommonResult<Integer> selectFaultMonitorCount() {
|
|
|
57
|
+ return CommonResult.data(monitorAIService.selectFaultMonitorCount());
|
|
|
58
|
+ }
|
|
|
59
|
+ /**
|
|
|
60
|
+ * 视频AI分析预警-使用占比
|
|
|
61
|
+ *
|
|
|
62
|
+ * @author ZeroLiYi
|
|
|
63
|
+ * @date 2024/06/20 11:37
|
|
|
64
|
+ */
|
|
|
65
|
+ @ApiOperationSupport(order = 1)
|
|
|
66
|
+ @ApiOperation("监控在线情况统计 - 使用占比")
|
|
|
67
|
+ @GetMapping("/monitorAI/selectMonitorProportion")
|
|
|
68
|
+ public CommonResult<Integer> selectMonitorProportion() {
|
|
|
69
|
+ return CommonResult.data(monitorAIService.selectMonitorProportion());
|
|
|
70
|
+ }
|
|
|
71
|
+
|
|
|
72
|
+
|
|
|
73
|
+}
|