EmsDeviceEvent.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.usky.ems.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import lombok.Data;
  7. import lombok.EqualsAndHashCode;
  8. import java.io.Serializable;
  9. import java.time.LocalDateTime;
  10. /**
  11. * 设备事件记录(leo.ems_device_event)
  12. */
  13. @Data
  14. @EqualsAndHashCode(callSuper = false)
  15. @TableName("ems_device_event")
  16. public class EmsDeviceEvent implements Serializable {
  17. private static final long serialVersionUID = 1L;
  18. @TableId(value = "id", type = IdType.AUTO)
  19. private Long id;
  20. @TableField("project_id")
  21. private Long projectId;
  22. private String sn;
  23. @TableField("device_id")
  24. private String deviceId;
  25. private String identifier;
  26. /** 设备类型 1:设备 2:网关 */
  27. @TableField("device_type")
  28. private Integer deviceType;
  29. /** 事件类型 1:通讯告警 2:功能告警 3:数据异常 */
  30. @TableField("event_type")
  31. private Integer eventType;
  32. @TableField("suppressed_to")
  33. private LocalDateTime suppressedTo;
  34. /** 确认类型 0:未确认 1:自动确认 2:人工确认 */
  35. @TableField("confirmation_type")
  36. private Integer confirmationType;
  37. @TableField("task_sn")
  38. private String taskSn;
  39. private String content;
  40. @TableField("start_time")
  41. private LocalDateTime startTime;
  42. @TableField("updated_by")
  43. private Long updatedBy;
  44. @TableField("update_time")
  45. private LocalDateTime updateTime;
  46. @TableField("created_by")
  47. private Long createdBy;
  48. @TableField("create_time")
  49. private LocalDateTime createTime;
  50. }