PdaDeviceUpload.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. package com.tofly.es;
  2. import com.baomidou.mybatisplus.annotation.FieldFill;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.annotation.TableField;
  5. import com.baomidou.mybatisplus.annotation.TableId;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import lombok.Data;
  9. import org.springframework.data.elasticsearch.annotations.Document;
  10. import org.springframework.format.annotation.DateTimeFormat;
  11. import java.io.Serializable;
  12. import java.util.Date;
  13. /**
  14. * 巡检设备信息上传表
  15. *
  16. * @author BZ-DJJ
  17. */
  18. @Data
  19. @Document(indexName = "hnlspda_" + "#{T(com.tofly.common.core.util.Date8Util).getYearMonth()}", type = "pdadevice")
  20. public class PdaDeviceUpload implements Serializable {
  21. private static final long serialVersionUID = 1L;
  22. /**
  23. * 数据唯一标识
  24. */
  25. @TableId(value = "ID", type = IdType.INPUT)
  26. @ApiModelProperty(value = "数据唯一标识")
  27. private Long id;
  28. @ApiModelProperty(value = "上报用户ID")
  29. private Long userId;
  30. @ApiModelProperty(value = "上报用户名称")
  31. private String userName;
  32. /**
  33. * 用户唯一标识
  34. */
  35. @ApiModelProperty(value = "用户唯一标识")
  36. @TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
  37. private Long createUser;
  38. @ApiModelProperty(hidden = true)
  39. private String createUserName;
  40. /**
  41. * gps状态 0:关闭 1:打开
  42. */
  43. @ApiModelProperty(value = "gps状态 0:关闭 1:打开")
  44. private String gpsState;
  45. /**
  46. * 定位网络(gps 1,基站2,wifi 3)
  47. */
  48. @ApiModelProperty(value = "定位网络(1 卫星定位,2 前次定位,4 缓存定位,5 Wifi定位,6 基站定位,8 离线定位,9 最后位置缓存)")
  49. private String network;
  50. /**
  51. * 网络状态 0:关闭 1:打开
  52. */
  53. @ApiModelProperty(value = "网络状态 0:关闭 1:打开")
  54. private String networkState;
  55. /**
  56. * 设备检测时间
  57. */
  58. @ApiModelProperty(value = "设备检测时间")
  59. private Date checkTime;
  60. /**
  61. * 上传时间
  62. */
  63. @ApiModelProperty(value = "上传时间")
  64. private Date uploadTime;
  65. /**
  66. * 设备电量
  67. */
  68. @ApiModelProperty(value = "设备电量")
  69. private String electricity;
  70. /**
  71. * 工作状态 1:上班 2:工作中 3:下班 4:异常
  72. */
  73. @ApiModelProperty(value = "工作状态 1:上班 2:工作中 3:下班 4:异常")
  74. private String workState;
  75. /**
  76. * 定位精度
  77. */
  78. @ApiModelProperty(value = "定位精度")
  79. private String gpsPrecision;
  80. /**
  81. * 卫星个数
  82. */
  83. @ApiModelProperty(value = "卫星个数")
  84. private Integer gpsStar;
  85. /**
  86. * 剩余空间
  87. */
  88. @ApiModelProperty(value = "剩余空间")
  89. private String residualSpace;
  90. /**
  91. * 车载设备唯一标识,关联表TF_YWPN_GPSDEVICE_W关键值
  92. */
  93. @ApiModelProperty(value = "车载设备唯一标识,关联表TF_YWPN_GPSDEVICE_W关键值")
  94. private Long gpsDeviceid;
  95. /**
  96. * 0:人巡 1:车巡
  97. */
  98. @ApiModelProperty(value = "0:人巡 1:车巡")
  99. private String gpsType;
  100. /**
  101. * 手机设备唯一标识
  102. */
  103. @ApiModelProperty(value = "手机设备唯一标识")
  104. private String pdaid;
  105. /**
  106. * 监控日期 yyyy/mm/dd
  107. */
  108. @ApiModelProperty(value = "监控日期 yyyy/mm/dd")
  109. private Date monitorDate;
  110. }