jiangqs
2023-04-29 28e19d6740469ad5c2d1061faa07d29cd9520a13
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
package com.ruoyi.system.domain.pojo.coupon;
 
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * <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.全部用户3.会员用户4非会员用户5自定义
     */
    @TableField("send_type")
    private Integer sendType;
    /**
     * 发送时间类型1立即2定时
     */
    @TableField("send_time_type")
    private Integer sendTimeType;
    /**
     * 发送时间
     */
    @TableField("send_time")
    private Date sendTime;
    /**
     * 门槛金额
     */
    @TableField("money_threshold")
    private BigDecimal moneyThreshold;
    /**
     * 折扣金额
     */
    @TableField("dicount_money")
    private BigDecimal dicountMoney;
    /**
     * 折扣百分比
     */
    @TableField("discout_percent")
    private BigDecimal discoutPercent;
    /**
     * 使用范围1.全场2.指定商品
     */
    @TableField("use_scope")
    private Integer useScope;
    /**
     * 有效期类型
     */
    @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;
 
 
    @Override
    protected Serializable pkVal() {
        return this.couponId;
    }
 
}