package com.yeshi.fanli.entity.integral;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
import org.yeshi.utils.mybatis.Column;
|
import org.yeshi.utils.mybatis.Table;
|
|
import com.google.gson.annotations.Expose;
|
|
/**
|
* 积分兑换
|
*
|
* @author Administrator
|
*
|
*/
|
@Table("yeshi_ec_integral_exchange")
|
public class IntegralExchange implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
public enum ExchangeTypeEnum {
|
freeCouponBuy("自购免单券"), freeCouponGive("赠送免单券"), rebatePercentCoupon("返利奖励券"), inviteCodeActivate("邀请码激活卡"),
|
inviteCodePublish("邀请码发布卡"), taoLiJin("推广红包"), cash("现金红包");
|
private final String desc;
|
|
private ExchangeTypeEnum(String desc) {
|
this.desc = desc;
|
}
|
|
public String getDesc() {
|
return desc;
|
}
|
}
|
|
@Expose
|
@Column(name = "ex_id")
|
private Long id;
|
|
@Expose
|
@Column(name = "ex_name")
|
private String name;// 名称
|
|
@Expose
|
@Column(name = "ex_picture")
|
private String picture; // 图片
|
|
@Expose
|
@Column(name = "ex_gold_coin")
|
private Integer goldCoin; // 兑换数量
|
|
@Expose
|
@Column(name = "ex_tip")
|
private String tip; // 提示
|
|
@Expose
|
@Column(name = "ex_btn_name")
|
private String btnName; // 按钮名称
|
|
@Expose
|
@Column(name = "ex_amount")
|
private BigDecimal amount; // 面额: 推广红包、现金红包
|
|
@Column(name = "ex_upper_limit")
|
private Integer upperLimit; // 上限
|
|
@Expose
|
@Column(name = "ex_rule_link")
|
private String ruleLink; // 规则链接
|
|
@Column(name = "ex_orderby")
|
private Integer orderby; // 排序
|
|
@Expose
|
@Column(name = "ex_type")
|
private ExchangeTypeEnum type; // 类型
|
|
@Expose
|
@Column(name = "ex_progress")
|
private String progress; // 兑换情况
|
|
@Column(name = "ex_state")
|
private Integer state; // 状态: 1启用 0停用
|
|
@Column(name = "ex_create_time")
|
private Date createTime;
|
|
@Column(name = "ex_update_time")
|
private Date updateTime;
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getPicture() {
|
return picture;
|
}
|
|
public void setPicture(String picture) {
|
this.picture = picture;
|
}
|
|
public Integer getGoldCoin() {
|
return goldCoin;
|
}
|
|
public void setGoldCoin(Integer goldCoin) {
|
this.goldCoin = goldCoin;
|
}
|
|
public String getTip() {
|
return tip;
|
}
|
|
public void setTip(String tip) {
|
this.tip = tip;
|
}
|
|
public BigDecimal getAmount() {
|
return amount;
|
}
|
|
public void setAmount(BigDecimal amount) {
|
this.amount = amount;
|
}
|
|
public Integer getUpperLimit() {
|
return upperLimit;
|
}
|
|
public void setUpperLimit(Integer upperLimit) {
|
this.upperLimit = upperLimit;
|
}
|
|
public String getRuleLink() {
|
return ruleLink;
|
}
|
|
public void setRuleLink(String ruleLink) {
|
this.ruleLink = ruleLink;
|
}
|
|
public ExchangeTypeEnum getType() {
|
return type;
|
}
|
|
public void setType(ExchangeTypeEnum type) {
|
this.type = type;
|
}
|
|
public Integer getState() {
|
return state;
|
}
|
|
public void setState(Integer state) {
|
this.state = state;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public Integer getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(Integer orderby) {
|
this.orderby = orderby;
|
}
|
|
public String getBtnName() {
|
return btnName;
|
}
|
|
public void setBtnName(String btnName) {
|
this.btnName = btnName;
|
}
|
|
public String getProgress() {
|
return progress;
|
}
|
|
public void setProgress(String progress) {
|
this.progress = progress;
|
}
|
}
|