CameraLogDetail.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package com.ozs.service.entity;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import com.ozs.common.annotation.Excel;
  7. import lombok.AllArgsConstructor;
  8. import lombok.Builder;
  9. import lombok.Data;
  10. import lombok.NoArgsConstructor;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. /**
  14. * @author wyy
  15. * @subject
  16. * @creat 2023/4/25
  17. */
  18. @Data
  19. @AllArgsConstructor
  20. @NoArgsConstructor
  21. @Builder
  22. public class CameraLogDetail implements Serializable {
  23. /**
  24. * 主键ID
  25. */
  26. @TableId(value = "id", type = IdType.AUTO)
  27. private Long id;
  28. /**
  29. * 关联升级日志id
  30. */
  31. private Long logId;
  32. /**
  33. * 相机编码
  34. */
  35. @Excel(name = "相机编码", width = 30)
  36. private String cameraCode;
  37. /**
  38. * 序列号
  39. */
  40. @Excel(name = "序列号")
  41. @TableField(exist = false)
  42. private String cameraSn;
  43. /**
  44. * 升级状态
  45. */
  46. @Excel(name = "状态", readConverterExp = "1=升级成功,2=升级中,3=升级失败")
  47. private Integer status;
  48. /**
  49. * 上一版本号
  50. */
  51. @TableField(exist = false)
  52. @Excel(name = "上一版本号")
  53. private String lastVersionNum;
  54. /**
  55. * 当前版本号
  56. */
  57. @TableField(exist = false)
  58. @Excel(name = "当前版本号")
  59. private String currentVersionNum;
  60. /**
  61. * 创建时间
  62. */
  63. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  64. @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  65. private Date updateTime;
  66. /**
  67. * 备注
  68. */
  69. private String remark;
  70. /**
  71. * 升级失败原因failure_reason
  72. */
  73. @Excel(name = "升级失败原因")
  74. private String failureReason;
  75. }