package cn.gistack.sm.hk.entity;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 海康视频事件
|
*
|
* @author zhongrj
|
* @date 2024-04-24
|
*/
|
@Data
|
@TableName(value = "sm_hk_event")
|
@ApiModel(value = "sm_hk_event对象", description = "考核方案")
|
public class HkEvent implements Serializable {
|
|
/**
|
* 主键id
|
*/
|
@JsonSerialize(using = ToStringSerializer.class)
|
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
private Long id;
|
|
/**
|
* 事件唯一标识
|
*/
|
@ApiModelProperty(value = "事件唯一标识")
|
private String eventId;
|
|
/**
|
* 事件源编号,物理设备是资源编号
|
*/
|
@ApiModelProperty(value = "事件源编号,物理设备是资源编号")
|
private String srcIndex;
|
|
/**
|
* 事件源类型
|
*/
|
@ApiModelProperty(value = "事件源类型")
|
private String srcType;
|
/**
|
* 事件源名称
|
*/
|
@ApiModelProperty(value = "事件源名称")
|
private String srcName;
|
|
/**
|
* 事件类型
|
*/
|
@ApiModelProperty(value = "事件类型")
|
private Long eventType;
|
/**
|
* 事件状态
|
* 0-瞬时
|
* 1-开始
|
* 2-停止
|
* 4-事件联动结果更新
|
* 5-事件图片异步上传
|
*/
|
@ApiModelProperty(value = "事件状态")
|
private Integer status;
|
|
/**
|
* 事件等级:
|
* 0-未配置
|
* 1-低
|
* 2-中
|
* 3-高
|
* 注意,此处事件等级是指在事件联动中配置的等级,需要配置了事件联动,才返回这个字段
|
*/
|
@ApiModelProperty(value = "事件等级")
|
private Integer eventLvl;
|
|
/**
|
* 脉冲超时时间
|
*/
|
@ApiModelProperty(value = "脉冲超时时间")
|
private Long timeout;
|
|
/**
|
* 事件发生时间(设备时间)
|
*/
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty(value = "事件发生时间(设备时间)")
|
private Date happenTime;
|
|
/**
|
* 事件发生的事件源父设备编码
|
*/
|
@ApiModelProperty(value = "事件发生的事件源父设备编码")
|
private String srcParentIndex;
|
|
/**
|
* 事件从接收者(程序处理后)发出的时间
|
*/
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty(value = "事件从接收者(程序处理后)发出的时间")
|
private Date sendTime;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty(value = "创建时间")
|
@TableField(value = "create_time",fill = FieldFill.INSERT)
|
private Date createTime;
|
}
|