BaseRailwayManagement.java 2.2 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.ozs.common.annotation.Excel;
  6. import com.ozs.common.core.domain.BaseEntity;
  7. import io.swagger.annotations.ApiModel;
  8. import lombok.AllArgsConstructor;
  9. import lombok.Builder;
  10. import lombok.Data;
  11. import lombok.NoArgsConstructor;
  12. import java.io.Serializable;
  13. import java.math.BigDecimal;
  14. /**
  15. * <p>
  16. * 线路管理表
  17. * </p>
  18. *
  19. * @author ozs
  20. * @since 2023-02-17
  21. */
  22. @Data
  23. @AllArgsConstructor
  24. @NoArgsConstructor
  25. @Builder
  26. @ApiModel("线路管理表")
  27. public class BaseRailwayManagement extends BaseEntity implements Serializable {
  28. private static final long serialVersionUID = 1L;
  29. /**
  30. * 主键ID
  31. */
  32. @TableId(value = "id", type = IdType.AUTO)
  33. private Long id;
  34. /**
  35. * 线路编码(四位数字)
  36. */
  37. @Excel(name = "编码")
  38. private String railwayCode;
  39. /**
  40. * 线路类型(1普铁2高铁3重载铁路)
  41. */
  42. @Excel(name = "线路类型", readConverterExp = "1=高铁,2=普快,3=重载铁路")
  43. private Integer railwayType;
  44. /**
  45. * 线路名称
  46. */
  47. @Excel(name = "线路名称")
  48. private String railwayName;
  49. /**
  50. * 线路类型名称
  51. */
  52. @TableField(exist = false)
  53. private String railwayTypeName;
  54. /**
  55. * 备注
  56. */
  57. @Excel(name = "备注")
  58. private String remark;
  59. /**
  60. * 始发站
  61. */
  62. private String startPoint;
  63. /**
  64. * 终点站
  65. */
  66. private String endPoint;
  67. /**
  68. * 起始里程
  69. */
  70. @Excel(name = "起始里程", type = Excel.Type.EXPORT)
  71. private Integer initialMileage;
  72. @TableField(exist = false)
  73. @Excel(name = "起始里程", type = Excel.Type.IMPORT)
  74. private BigDecimal initialMileageBD;
  75. /**
  76. * 结束里程
  77. */
  78. @Excel(name = "起始里程", type = Excel.Type.EXPORT)
  79. private Integer endMileage;
  80. @TableField(exist = false)
  81. @Excel(name = "结束里程", type = Excel.Type.IMPORT)
  82. private BigDecimal endMileageBD;
  83. /**
  84. * 里程范围
  85. */
  86. @TableField(exist = false)
  87. private String milesRange;
  88. }