AlarmDetailsRealTimeDto.java 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package com.huaxu.dto;
  2. import com.alibaba.excel.annotation.ExcelIgnore;
  3. import com.alibaba.excel.annotation.ExcelProperty;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiModelProperty;
  7. import lombok.Data;
  8. import java.io.Serializable;
  9. import java.math.BigDecimal;
  10. import java.util.Date;
  11. /**
  12. * @description
  13. * @auto wangli
  14. * @data 2020-11-17 21:17
  15. */
  16. @Data
  17. @Api("实时报警")
  18. public class AlarmDetailsRealTimeDto implements Serializable {
  19. private static final long serialVersionUID = -875384438390073815L;
  20. @ExcelIgnore
  21. @ApiModelProperty(value = "主键id")
  22. private Integer id;
  23. @ApiModelProperty("所属场景")
  24. @ExcelProperty(value = "所属场景",index = 0)
  25. private String sceneName;
  26. @ApiModelProperty("设备名称")
  27. @ExcelProperty(value = "设备名称",index = 1)
  28. private String deviceName;
  29. @ApiModelProperty("设备类型")
  30. @ExcelProperty(value = "设备类型",index = 2)
  31. private String deviceType;
  32. @ApiModelProperty("报警类型列表值")
  33. @ExcelProperty(value = "报警类型",index = 3)
  34. private String alarmType;
  35. @ApiModelProperty(value ="报警参数")
  36. @ExcelProperty(value = "报警参数",index = 4)
  37. private String attributeName;
  38. @ApiModelProperty(value = "当前数值")
  39. @ExcelProperty(value = "当前数值",index = 5)
  40. private BigDecimal alarmValue;
  41. @ApiModelProperty(value = "报警详情")
  42. @ExcelProperty(value = "报警详情",index = 6)
  43. private String alarmContent;
  44. @ApiModelProperty("地址")
  45. @ExcelProperty(value = "地址",index =7)
  46. private String address;
  47. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
  48. @ApiModelProperty(value = "报警开始时间",example = "2020-12-12 12:12:12")
  49. @ExcelProperty(value = "开始时间",index =8)
  50. private Date alarmStartTime;
  51. @ExcelIgnore
  52. @ApiModelProperty("经度")
  53. private BigDecimal pointX;
  54. @ExcelIgnore
  55. @ApiModelProperty("维度")
  56. private BigDecimal pointY;
  57. @ExcelIgnore
  58. @ApiModelProperty(value = "报警状态")
  59. private Integer state;
  60. @ExcelIgnore
  61. @ApiModelProperty(value = "处理状态")
  62. private Integer opState;
  63. }