CarInformation.java 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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 originalPrice;
  42. /**
  43. * 会员价格
  44. */
  45. @Excel(name = "会员价格")
  46. private BigDecimal memberPrice;
  47. /**
  48. * 单次积分
  49. */
  50. @Excel(name = "单次积分")
  51. private Integer point;
  52. /**
  53. * 有效期
  54. */
  55. @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  56. // @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
  57. private Date expirationDate;
  58. /**
  59. * 使用规则
  60. */
  61. // @Excel(name = "使用规则")
  62. private String notes;
  63. /**
  64. * 状态(上架;下架)
  65. */
  66. private String cardState;
  67. @Excel(name = "卡种状态")
  68. private String cardStateLabel;
  69. public BigDecimal getOriginalPrice() {
  70. return originalPrice;
  71. }
  72. public void setOriginalPrice(BigDecimal originalPrice) {
  73. this.originalPrice = originalPrice;
  74. }
  75. public BigDecimal getMemberPrice() {
  76. return memberPrice;
  77. }
  78. public void setMemberPrice(BigDecimal memberPrice) {
  79. this.memberPrice = memberPrice;
  80. }
  81. public String getCardState() {
  82. return cardState;
  83. }
  84. public void setCardState(String cardState) {
  85. this.cardState = cardState;
  86. }
  87. public String getCardStateLabel() {
  88. return cardStateLabel;
  89. }
  90. public void setCardStateLabel(String cardStateLabel) {
  91. this.cardStateLabel = cardStateLabel;
  92. }
  93. public String getTypeLabel() {
  94. return typeLabel;
  95. }
  96. public void setTypeLabel(String typeLabel) {
  97. this.typeLabel = typeLabel;
  98. }
  99. public void setId(Long id) {
  100. this.id = id;
  101. }
  102. public Long getId() {
  103. return id;
  104. }
  105. public void setName(String name) {
  106. this.name = name;
  107. }
  108. public String getName() {
  109. return name;
  110. }
  111. public void setType(String type) {
  112. this.type = type;
  113. }
  114. public String getType() {
  115. return type;
  116. }
  117. public void setTotalNumber(Integer totalNumber) {
  118. this.totalNumber = totalNumber;
  119. }
  120. public Integer getTotalNumber() {
  121. return totalNumber;
  122. }
  123. public void setPoint(Integer point) {
  124. this.point = point;
  125. }
  126. public Integer getPoint() {
  127. return point;
  128. }
  129. public void setExpirationDate(Date expirationDate) {
  130. this.expirationDate = expirationDate;
  131. }
  132. public Date getExpirationDate() {
  133. return expirationDate;
  134. }
  135. public void setNotes(String notes) {
  136. this.notes = notes;
  137. }
  138. public String getNotes() {
  139. return notes;
  140. }
  141. @Override
  142. public String toString() {
  143. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  144. .append("id", getId())
  145. .append("name", getName())
  146. .append("type", getType())
  147. .append("totalNumber", getTotalNumber())
  148. .append("point", getPoint())
  149. .append("expirationDate", getExpirationDate())
  150. .append("notes", getNotes())
  151. .append("cardState", getCardState())
  152. .append("createBy", getCreateBy())
  153. .append("createTime", getCreateTime())
  154. .append("updateBy", getUpdateBy())
  155. .append("updateTime", getUpdateTime())
  156. .toString();
  157. }
  158. }