Pu Zhibing
3 小时以前 fc44254dcb71087ca0e154ade93c9e1400a90920
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
package com.ruoyi.member.domain.pojo.coupon;
 
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author jqs
 * @since 2023-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_coupon")
public class Coupon extends Model<Coupon> {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 优惠券id
     */
    @TableId("coupon_id")
    private String couponId;
    /**
     * 删除标记
     */
    @TableField("del_flag")
    private Integer delFlag;
    /**
     * 优惠券类型1.满减2.折扣3.代金4.商品
     */
    @TableField("coupon_type")
    private Integer couponType;
    /**
     * 优惠券状态-1删除0禁用1启用
     */
    @TableField("coupon_status")
    private Integer couponStatus;
    /**
     * 优惠券名称
     */
    @TableField("coupon_name")
    private String couponName;
    /**
     * 发送类型1.手动领取2.指定发放
     */
    @TableField("send_type")
    private Integer sendType;
    /**
     * 发送对象2.全部用户3.会员用户4非会员用户5自定义
     */
    @TableField("send_target")
    private Integer sendTarget;
    /**
     * 发送时间类型1立即2定时
     */
    @TableField("send_time_type")
    private Integer sendTimeType;
    /**
     * 发送时间
     */
    @TableField("send_time")
    private Date sendTime;
    /**
     * 门槛金额
     */
    @TableField("money_threshold")
    private BigDecimal moneyThreshold;
    /**
     * 折扣金额
     */
    @TableField("discount_money")
    private BigDecimal discountMoney;
    /**
     * 折扣百分比
     */
    @TableField("discount_percent")
    private BigDecimal discountPercent;
    /**
     * 使用范围1.全场2.指定商品
     */
    @TableField("use_scope")
    private Integer useScope;
    /**
     * 有效期类型1.时间段2.领取之日起
     */
    @TableField("valid_time_type")
    private Integer validTimeType;
    /**
     * 有效开始时间
     */
    @TableField("valid_start_time")
    private Date validStartTime;
    /**
     * 有效截止时间
     */
    @TableField("valid_end_time")
    private Date validEndTime;
    /**
     * 有效期
     */
    @TableField("valid_day")
    private Integer validDay;
    @TableField("create_time")
    private Date createTime;
    @TableField("create_user_id")
    private Long createUserId;
    @TableField("update_time")
    private Date updateTime;
    @TableField("update_user_id")
    private Long updateUserId;
 
    /**
     * 优惠券来源1平台2商户
     */
    @TableField("coupon_from")
    private Integer couponFrom;
 
    /**
     * 商户id
     */
    @TableField("shop_id")
    private Long shopId;
 
    /**
     * 关联商品ids
     */
    @TableField("rel_goods_ids")
    private String relGoodsIds;
 
    /**
     * 审核状态1申请中2审核通过3审核拒绝
     */
    @TableField("audit_status")
    private Integer auditStatus;
 
    /**
     * 审核理由
     */
    @TableField("audit_reason")
    private String auditReason;
 
    /**
     * 关联类型1.用户管理筛选2.活动管理筛选
     */
    @TableField("relation_type")
    private Integer relationType;
 
    /**
     * 关联活动类型1.秒杀活动
     */
    @TableField("relation_activity_type")
    private Integer relationActivityType;
 
    /**
     * 关联活动id
     */
    @TableField("relation_activity_id")
    private String relationActivityId;
 
    /**
     * 领取限制数量
     */
    @TableField("limit_number")
    private Integer limitNumber;
 
    /**
     * 是否发放过
     */
    @TableField("send_flag")
    private Integer sendFlag;
 
    @TableField("rel_user_ids")
    private String relUserIds;
 
    /**
     * 宣传海报
     */
    @TableField("propaganda_poster")
    private String propagandaPoster;
 
    /**
     * 发放限制数量
     */
    @TableField("send_limit_number")
    private Integer sendLimitNumber;
    /**
     * 发放限制0否1是
     */
    @TableField("send_limit_flag")
    private Integer sendLimitFlag;
 
 
    @Override
    protected Serializable pkVal() {
        return this.couponId;
    }
 
}