wl
2022-12-07 a9be2e0bfbd8e716207fc467e2699d9caec76a7c
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
82
83
84
85
86
87
88
package com.ycl.vo.cockpit.enforcementEvents;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import io.swagger.v3.oas.models.security.SecurityScheme;
import lombok.Data;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * @author Lyq
 * @version 1.0
 * @date 2022/10/26
 */
@ApiModel(description = "驾驶舱数据-执法事件VO层")
public class EnforcementEventsVO {
    @ApiModel(description = "执法事件统计")
    @Data
    public static class StatisticsEventVO {
        @ApiModelProperty(value = "数量")
        private Integer count;
 
        @ApiModelProperty(value = "比例")
        private BigDecimal ratio;
 
        @ApiModelProperty(value = "上升下降")
        private Boolean up;
    }
 
    @Data
    @ApiModel(description = "事件类型/事件来源")
    public static class TypeAndSourceVO {
        @ApiModelProperty(value = "事件的总数")
        private Integer all;
        @ApiModelProperty(value = "事件类型的数量、各占比")
        private List<EnforcementEventsVO.TypeAndSourceVO1> records;
    }
 
    @Data
    @ApiModel(description = "事件类型/事件来源")
    public static class TypeAndSourceVO1 {
        @ApiModelProperty(value = "名称")
        private String name;
        @ApiModelProperty(value = "数量")
        private Integer count;
        @ApiModelProperty(value = "比例")
        private BigDecimal ratio;
    }
 
    @Data
    @ApiModel(description = "视频抓拍高发点位/事件区域统计")
    public static class VideoAndAreaVO {
        @ApiModelProperty(value = "点位名称")
        private String name;
        @ApiModelProperty(value = "次数")
        private Integer count;
        @ApiModelProperty(value = "数据占比")
        private BigDecimal ratio;
    }
 
    @Data
    @ApiModel(description = "延误事件")
    public static class DelayVO {
        @ApiModelProperty(value = "事件编码(唯一)")
        private String code;
        @ApiModelProperty(value = "事件描述")
        private String description;
        @ApiModelProperty(value = "超期时间(分钟)")
        private Integer duration;
    }
 
    @Data
    @ApiModel(description = "事件信息")
    public static class InfoVO {
        @ApiModelProperty(value = "今日事件总数")
        private Integer today;
        @ApiModelProperty(value = "本周事件总数")
        private Integer week;
        @ApiModelProperty(value = "执法出动总数")
        private Integer dispatch;
        @ApiModelProperty(value = "AI识别的事件总数")
        private Integer identification;
        @ApiModelProperty(value = "具体事件的数据信息")
        private List<EventVO> event;
    }
}