AlarmDetailsHistoryDto.java 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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:18
  15. */
  16. @Data
  17. @Api("历史报警")
  18. public class AlarmDetailsHistoryDto implements Serializable {
  19. private static final long serialVersionUID = 6107433946964301057L;
  20. @ApiModelProperty("所属场景")
  21. @ExcelProperty(value = "所属场景",index = 0)
  22. private String sceneName;
  23. @ApiModelProperty("设备名称")
  24. @ExcelProperty(value = "设备名称",index = 1)
  25. private String deviceName;
  26. @ApiModelProperty("设备类型")
  27. @ExcelProperty(value = "设备类型",index = 2)
  28. private String deviceType;
  29. @ApiModelProperty("报警类型列表值")
  30. @ExcelProperty(value = "报警类型",index = 3)
  31. private String alarmType;
  32. @ApiModelProperty(value ="报警参数")
  33. @ExcelProperty(value = "报警参数",index = 4)
  34. private String attributeName;
  35. @ApiModelProperty(value ="报警规则")
  36. @ExcelProperty(value = "报警规则",index =5)
  37. private String alermRule;
  38. @ApiModelProperty(value = "最大告警数值")
  39. @ExcelProperty(value = "最高值",index =6)
  40. private BigDecimal maxValue;
  41. @ApiModelProperty(value = "最小告警数值")
  42. @ExcelProperty(value = "最低值",index =7)
  43. private BigDecimal minValue;
  44. @ApiModelProperty("地址")
  45. @ExcelProperty(value = "地址",index =8)
  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 =9)
  50. private Date alarmStartTime;
  51. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
  52. @ApiModelProperty(value = "报警结束时间",example = "2020-12-12 12:12:12")
  53. @ExcelProperty(value = "结束时间",index =10)
  54. private Date alarmEndTime;
  55. @ApiModelProperty("持续时间,单位分钟")
  56. @ExcelProperty(value = "持续时间(分钟)",index =11)
  57. private Integer duration;
  58. @ExcelIgnore
  59. @ApiModelProperty("经度")
  60. private BigDecimal pointX;
  61. @ExcelIgnore
  62. @ApiModelProperty("维度")
  63. private BigDecimal pointY;
  64. @ExcelIgnore
  65. @ApiModelProperty(value = "报警状态")
  66. private Integer state;
  67. @ExcelIgnore
  68. @ApiModelProperty(value = "处理状态")
  69. private Integer opState;
  70. }