CarInformation.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. package beilv.carinformation.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import beilv.common.annotation.Excel;
  8. import beilv.common.core.domain.BaseEntity;
  9. /**
  10. * 卡种信息对象 car_information
  11. *
  12. * @author ruoyi
  13. * @date 2025-01-02
  14. */
  15. public class CarInformation extends BaseEntity {
  16. private static final long serialVersionUID = 1L;
  17. /**
  18. * 主键
  19. */
  20. private Long id;
  21. /**
  22. * 名称
  23. */
  24. @Excel(name = "名称")
  25. private String name;
  26. /**
  27. * 类型
  28. */
  29. private String type;
  30. @Excel(name = "类型")
  31. private String typeLabel;
  32. /**
  33. * 可用次数
  34. */
  35. @Excel(name = "可用次数")
  36. private Integer totalNumber;
  37. /**
  38. * 价格
  39. */
  40. @Excel(name = "价格")
  41. private BigDecimal price;
  42. /**
  43. * 单次积分
  44. */
  45. @Excel(name = "单次积分")
  46. private Integer point;
  47. /**
  48. * 有效期
  49. */
  50. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  51. @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
  52. private Date expirationDate;
  53. /**
  54. * 使用规则
  55. */
  56. @Excel(name = "使用规则")
  57. private String notes;
  58. /**
  59. * 状态(开启;关闭)
  60. */
  61. private String state;
  62. @Excel(name = "状态")
  63. private String stateLabel;
  64. public String getTypeLabel() {
  65. return typeLabel;
  66. }
  67. public void setTypeLabel(String typeLabel) {
  68. this.typeLabel = typeLabel;
  69. }
  70. public String getStateLabel() {
  71. return stateLabel;
  72. }
  73. public void setStateLabel(String stateLabel) {
  74. this.stateLabel = stateLabel;
  75. }
  76. public void setId(Long id) {
  77. this.id = id;
  78. }
  79. public Long getId() {
  80. return id;
  81. }
  82. public void setName(String name) {
  83. this.name = name;
  84. }
  85. public String getName() {
  86. return name;
  87. }
  88. public void setType(String type) {
  89. this.type = type;
  90. }
  91. public String getType() {
  92. return type;
  93. }
  94. public void setTotalNumber(Integer totalNumber) {
  95. this.totalNumber = totalNumber;
  96. }
  97. public Integer getTotalNumber() {
  98. return totalNumber;
  99. }
  100. public void setPrice(BigDecimal price) {
  101. this.price = price;
  102. }
  103. public BigDecimal getPrice() {
  104. return price;
  105. }
  106. public void setPoint(Integer point) {
  107. this.point = point;
  108. }
  109. public Integer getPoint() {
  110. return point;
  111. }
  112. public void setExpirationDate(Date expirationDate) {
  113. this.expirationDate = expirationDate;
  114. }
  115. public Date getExpirationDate() {
  116. return expirationDate;
  117. }
  118. public void setNotes(String notes) {
  119. this.notes = notes;
  120. }
  121. public String getNotes() {
  122. return notes;
  123. }
  124. public void setState(String state) {
  125. this.state = state;
  126. }
  127. public String getState() {
  128. return state;
  129. }
  130. @Override
  131. public String toString() {
  132. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  133. .append("id", getId())
  134. .append("name", getName())
  135. .append("type", getType())
  136. .append("totalNumber", getTotalNumber())
  137. .append("price", getPrice())
  138. .append("point", getPoint())
  139. .append("expirationDate", getExpirationDate())
  140. .append("notes", getNotes())
  141. .append("state", getState())
  142. .append("createBy", getCreateBy())
  143. .append("createTime", getCreateTime())
  144. .append("updateBy", getUpdateBy())
  145. .append("updateTime", getUpdateTime())
  146. .toString();
  147. }
  148. }