MrShi
2 天以前 eb82684152ffb0acddf67da92e4533a0190eb258
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
package com.doumee.dao.business.model;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.doumee.core.annotation.excel.ExcelColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
 
/**
 * 报警事件记录日志表
 * @author 江蹄蹄
 * @date 2025/09/29 11:20
 */
@Data
@ApiModel("报警事件记录日志表")
@TableName("`warning_event`")
public class WarningEvent {
 
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", example = "1")
    //@ExcelColumn(name="主键")
    private Integer id;
 
    @ApiModelProperty(value = "创建人编码", example = "1")
    //@ExcelColumn(name="创建人编码")
    private Integer creator;
 
    @ApiModelProperty(value = "创建时间")
    //@ExcelColumn(name="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
 
    @ApiModelProperty(value = "更新人编码", example = "1")
    //@ExcelColumn(name="更新人编码")
    private Integer editor;
 
    @ApiModelProperty(value = "更新时间")
    //@ExcelColumn(name="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date editDate;
 
    @ApiModelProperty(value = "是否删除0否 1是", example = "1")
    //@ExcelColumn(name="是否删除0否 1是")
    private Integer isdeleted;
 
    @ApiModelProperty(value = "备注")
    //@ExcelColumn(name="备注")
    private String info;
 
    @ApiModelProperty(value = "事件编码(关联warning)", example = "1")
    //@ExcelColumn(name="事件编码(关联warning)")
    private Integer warningId;
 
    @ApiModelProperty(value = "事件标题")
    @ExcelColumn(name="事件类型",width=10,index = 2)
    private String title;
 
    @ApiModelProperty(value = "事件内容")
    //@ExcelColumn(name="事件内容")
    private String content;
 
    @ApiModelProperty(value = "状态 0未推送 1推送成功2推送失败", example = "1")
    //@ExcelColumn(name="状态 0未推送 1推送成功2推送失败")
    private Integer status;
 
    @ApiModelProperty(value = "所在位置")
    @ExcelColumn(name="所在位置",width=10,index = 5)
    private String region;
 
    @ApiModelProperty(value = "唯一标识")
    //@ExcelColumn(name="唯一标识")
    private String eventId;
 
    @ApiModelProperty(value = "事件类型")
    //@ExcelColumn(name="事件类型")
    private String eventType;
 
    @ApiModelProperty(value = "事件等级:             0-未配置             1-低             2-中             3-高             注意,此处事件等级是指在事件联动中配置的等级,需要配置了事件联动,才返回这个字段事件类型")
    //@ExcelColumn(name="事件等级:             0-未配置             1-低             2-中             3-高             注意,此处事件等级是指在事件联动中配置的等级,需要配置了事件联动,才返回这个字段事件类型")
    private String eventLevel;
 
    @ApiModelProperty(value = "事件发生事件")
    @ExcelColumn(name="发生时间",width=10,index = 1)
    private String happenTime;
 
    @ApiModelProperty(value = "事件图片服务编号")
    //@ExcelColumn(name="事件图片服务编号")
    private String imgServeCode;
 
    @ApiModelProperty(value = "事件图片")
    //@ExcelColumn(name="事件图片")
    private String imgurl;
 
    @ApiModelProperty(value = "报文")
    //@ExcelColumn(name="报文")
    private String jsonContent;
 
    @ApiModelProperty(value = "事件源唯一标识")
    //@ExcelColumn(name="事件源唯一标识")
    private String srcIndex;
 
    @ApiModelProperty(value = "事件源类型")
    //@ExcelColumn(name="事件源类型")
    private String srcType;
 
    @ApiModelProperty(value = "事件源名称")
    //@ExcelColumn(name="事件源名称")
    private String srcName;
    @ApiModelProperty(value = "事件分类 0=安防事件;1=消防事件;2=车载事件;3=钥匙柜事件; 4=天气预警;", example = "1")
    @ExcelColumn(name="事件分类",valueMapping = "0=安防事件;1=消防事件;2=车载事件;3=钥匙柜事件;4=天气预警;",width=10,index = 3)
    @TableField(exist = false)
    private Integer warningType;
    @ApiModelProperty(value = "事件类型", example = "1")
//    @ExcelColumn(name="事件类型",width=10,index = 2)
    @TableField(exist = false)
    private String warningName;
    @ApiModelProperty(value = "事件等级 0低 1中 2高", example = "1")
    @ExcelColumn(name="事件等级",valueMapping = "0=低;1=中;2=高;",width=10,index = 4)
    @TableField(exist = false)
    private Integer warningLevel;
 
 
 
    @ApiModelProperty(value = "查询时间开始  ")
    @TableField(exist = false)
    private Date queryStarttime;
 
    @ApiModelProperty(value = "查询时间结束  ")
    @TableField(exist = false)
    private Date queryEndtime;
}