admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
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
236
package com.yeshi.fanli.entity.system;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
import org.yeshi.utils.generater.mybatis.Column;
import org.yeshi.utils.generater.mybatis.Table;
 
/**
 * 本地自定义券信息
 * @author Administrator
 *
 */
@Table("yeshi_ec_system_coupon")
public class SystemCoupon implements Serializable{
 
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    // 券类型
    public enum CouponTypeEnum {
        freeCoupon("自购免单券"), welfareFreeCoupon("福利免单"), rebatePercentCoupon("返利比提成奖励券"),
        freeCouponBuy("自购免单券"),freeCouponGive("赠送免单券");
        private final String desc;
 
        private CouponTypeEnum(String desc) {
            this.desc = desc;
        }
 
        public String getDesc() {
            return desc;
        }
    }
 
    @Column(name = "sc_id")
    private Long id;
 
    // 用户id
    @Column(name = "sc_name")
    private String name;
 
    // 图片-有效
    @Column(name = "sc_picture")
    private String picture;
    
    // 图片-失效
    @Column(name = "sc_picture_invalid")
    private String pictureInvalid;
    
    // 简介作用:任性0元购、再返10%
    @Column(name = "sc_effect")
    private String effect;
    
    // 券类型
    @Column(name = "sc_type")
    private CouponTypeEnum type;
 
    // 券面返利比例值
    @Column(name = "sc_percent")
    private BigDecimal percent;
 
    // 券面值
    @Column(name = "sc_amount")
    private String amount;
 
    // 有效期天-剩余激活时间
    @Column(name = "sc_activate_day")
    private Integer activateDay;
 
    // 有效期天数
    @Column(name = "sc_expiry_day")
    private Integer expiryDay;
        
    // 规则
    @Column(name = "sc_rule")
    private String rule;
 
    // 规则
    @Column(name = "sc_rule_link")
    private String ruleLink;
 
    
    // 备注说明
    @Column(name = "sc_remark")
    private String remark;
 
    // 状态 0未启用 1已启用
    @Column(name = "sc_state")
    private Integer state;
 
    // 创建时间
    @Column(name = "sc_create_time")
    private Date createTime;
 
    // 更新时间
    @Column(name = "sc_update_time")
    private Date updateTime;
    
    public SystemCoupon() {}
    
    public SystemCoupon(Long id) {
        this.id = id;
    }
 
    
    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 CouponTypeEnum getType() {
        return type;
    }
 
    public void setType(CouponTypeEnum type) {
        this.type = type;
    }
 
    public BigDecimal getPercent() {
        return percent;
    }
 
    public void setPercent(BigDecimal percent) {
        this.percent = percent;
    }
 
    public String getAmount() {
        return amount;
    }
 
    public void setAmount(String amount) {
        this.amount = amount;
    }
 
    public Integer getExpiryDay() {
        return expiryDay;
    }
 
    public void setExpiryDay(Integer expiryDay) {
        this.expiryDay = expiryDay;
    }
 
    public String getRule() {
        return rule;
    }
 
    public void setRule(String rule) {
        this.rule = rule;
    }
 
    public String getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    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 String getEffect() {
        return effect;
    }
 
    public void setEffect(String effect) {
        this.effect = effect;
    }
 
    public String getPictureInvalid() {
        return pictureInvalid;
    }
 
    public void setPictureInvalid(String pictureInvalid) {
        this.pictureInvalid = pictureInvalid;
    }
 
    public String getRuleLink() {
        return ruleLink;
    }
 
    public void setRuleLink(String ruleLink) {
        this.ruleLink = ruleLink;
    }
 
    public Integer getActivateDay() {
        return activateDay;
    }
 
    public void setActivateDay(Integer activateDay) {
        this.activateDay = activateDay;
    }
}