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; 
 | 
} 
 |