BaseVehicle.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. private String vehicleName;
  41. /**
  42. * 创建者
  43. */
  44. private String createBy;
  45. /**
  46. * 创建时间
  47. */
  48. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  49. private Date createTime;
  50. /**
  51. * 更新者
  52. */
  53. private String updateBy;
  54. /**
  55. * 更新时间
  56. */
  57. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  58. private Date updateTime;
  59. /**
  60. * 挂载终端名称
  61. */
  62. @TableField(exist = false)
  63. @Excel(name = "车载终端")
  64. private String terminalName;
  65. /**
  66. * 挂载终端名称
  67. */
  68. @TableField(exist = false)
  69. private String terminalCode;
  70. /**
  71. * 备注
  72. */
  73. @Excel(name = "备注")
  74. private String remark;
  75. /**
  76. * 机车行驶信息
  77. */
  78. @TableField(exist = false)
  79. private BaseVehicleTerminalDto vehicleTerminalDto;
  80. }