admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
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;
    
    // 用户金币
    @Expose
    private String userGoldCoin;
    
    // 发布列表-需要跳转
    @Expose
    private boolean needJump;
 
    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;
    }
 
    public String getUserGoldCoin() {
        return userGoldCoin;
    }
 
    public void setUserGoldCoin(String userGoldCoin) {
        this.userGoldCoin = userGoldCoin;
    }
 
    public boolean isNeedJump() {
        return needJump;
    }
 
    public void setNeedJump(boolean needJump) {
        this.needJump = needJump;
    }
}