123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- package beilv.carinformation.domain;
- import java.math.BigDecimal;
- import java.util.Date;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import beilv.common.annotation.Excel;
- import beilv.common.core.domain.BaseEntity;
- /**
- * 卡种信息对象 car_information
- *
- * @author ruoyi
- * @date 2025-01-02
- */
- public class CarInformation extends BaseEntity {
- private static final long serialVersionUID = 1L;
- /**
- * 主键
- */
- private Long id;
- /**
- * 名称
- */
- @Excel(name = "名称")
- private String name;
- /**
- * 类型
- */
- private String type;
- @Excel(name = "类型")
- private String typeLabel;
- /**
- * 可用次数
- */
- @Excel(name = "可用次数")
- private Integer totalNumber;
- /**
- * 价格
- */
- @Excel(name = "价格")
- private BigDecimal price;
- /**
- * 单次积分
- */
- @Excel(name = "单次积分")
- private Integer point;
- /**
- * 有效期
- */
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
- private Date expirationDate;
- /**
- * 使用规则
- */
- @Excel(name = "使用规则")
- private String notes;
- /**
- * 状态(开启;关闭)
- */
- private String state;
- @Excel(name = "状态")
- private String stateLabel;
- public String getTypeLabel() {
- return typeLabel;
- }
- public void setTypeLabel(String typeLabel) {
- this.typeLabel = typeLabel;
- }
- public String getStateLabel() {
- return stateLabel;
- }
- public void setStateLabel(String stateLabel) {
- this.stateLabel = stateLabel;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Long getId() {
- return id;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getName() {
- return name;
- }
- public void setType(String type) {
- this.type = type;
- }
- public String getType() {
- return type;
- }
- public void setTotalNumber(Integer totalNumber) {
- this.totalNumber = totalNumber;
- }
- public Integer getTotalNumber() {
- return totalNumber;
- }
- public void setPrice(BigDecimal price) {
- this.price = price;
- }
- public BigDecimal getPrice() {
- return price;
- }
- public void setPoint(Integer point) {
- this.point = point;
- }
- public Integer getPoint() {
- return point;
- }
- public void setExpirationDate(Date expirationDate) {
- this.expirationDate = expirationDate;
- }
- public Date getExpirationDate() {
- return expirationDate;
- }
- public void setNotes(String notes) {
- this.notes = notes;
- }
- public String getNotes() {
- return notes;
- }
- public void setState(String state) {
- this.state = state;
- }
- public String getState() {
- return state;
- }
- @Override
- public String toString() {
- return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
- .append("id", getId())
- .append("name", getName())
- .append("type", getType())
- .append("totalNumber", getTotalNumber())
- .append("price", getPrice())
- .append("point", getPoint())
- .append("expirationDate", getExpirationDate())
- .append("notes", getNotes())
- .append("state", getState())
- .append("createBy", getCreateBy())
- .append("createTime", getCreateTime())
- .append("updateBy", getUpdateBy())
- .append("updateTime", getUpdateTime())
- .toString();
- }
- }
|