DataRealTime.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.usky.demo.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import java.time.LocalDateTime;
  5. import java.io.Serializable;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import lombok.Data;
  8. import lombok.EqualsAndHashCode;
  9. /**
  10. * <p>
  11. * 实时数据表
  12. * </p>
  13. *
  14. * @author ya
  15. * @since 2023-06-07
  16. */
  17. @Data
  18. @EqualsAndHashCode(callSuper = false)
  19. public class DataRealTime implements Serializable {
  20. private static final long serialVersionUID = 1L;
  21. /**
  22. * 主键ID
  23. */
  24. @TableId(value = "id", type = IdType.AUTO)
  25. private Integer id;
  26. /**
  27. * 设备ID
  28. */
  29. private String deviceId;
  30. /**
  31. * 产品编码
  32. */
  33. private String productCode;
  34. /**
  35. * 设备类型
  36. */
  37. private Integer deviceType;
  38. /**
  39. * 属性名称
  40. */
  41. private String attributeName;
  42. /**
  43. * 属性值
  44. */
  45. private String attributeData;
  46. /**
  47. * 数据时间
  48. */
  49. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  50. private LocalDateTime dataTime;
  51. /**
  52. * 插入时间
  53. */
  54. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  55. private LocalDateTime insertTime;
  56. }