BaseVehicle.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package com.ozs.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 com.ozs.entity.vo.BaseVehicleTerminalDto;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import java.io.Serializable;
  11. import java.util.Date;
  12. import java.util.List;
  13. /**
  14. * <p>
  15. * 机车信息表
  16. * </p>
  17. *
  18. * @author ozs
  19. * @since 2023-04-11
  20. */
  21. @Data
  22. @EqualsAndHashCode(callSuper = false)
  23. public class BaseVehicle implements Serializable {
  24. private static final long serialVersionUID = 1L;
  25. @TableField(exist = false)
  26. private List<Long> ids;
  27. /**
  28. * 主键ID
  29. */
  30. @TableId(value = "id", type = IdType.AUTO)
  31. private Long id;
  32. /**
  33. * 机车号
  34. */
  35. @Excel(name = "机车号")
  36. private String vehicleCode;
  37. /**
  38. * 车型
  39. */
  40. @Excel(name = "车型")
  41. private String vehicleType;
  42. /**
  43. * AB端
  44. */
  45. @Excel(name = "AB端")
  46. private String end;
  47. /**
  48. * 机车名称
  49. */
  50. private String vehicleName;
  51. /**
  52. * 创建者
  53. */
  54. private String createBy;
  55. /**
  56. * 创建时间
  57. */
  58. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  59. private Date createTime;
  60. /**
  61. * 更新者
  62. */
  63. private String updateBy;
  64. /**
  65. * 更新时间
  66. */
  67. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  68. private Date updateTime;
  69. /**
  70. * 挂载终端名称
  71. */
  72. @TableField(exist = false)
  73. @Excel(name = "车载终端")
  74. private String terminalName;
  75. /**
  76. * 备注
  77. */
  78. @Excel(name = "备注")
  79. private String remark;
  80. /**
  81. * 机车行驶信息
  82. */
  83. @TableField(exist = false)
  84. private BaseVehicleTerminalDto vehicleTerminalDto;
  85. }