gongzuming
2024-09-19 a768dc3daa04d35fedfbe75c0a59b9b2545b85c4
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
package com.mzl.flower.entity.coupon;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.mzl.flower.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * @author @TaoJie
 * @since 2024-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_coupon_record")
public class CouponRecordDO extends BaseEntity {
 
 
    /**
     * 优惠券ID
     */
    private String couponId;
 
    /**
     * 用户id
     */
    private String userId;
 
    /**
     * 商户ID
     */
    private Long customerId;
 
    /**
     * 状态(coupon_record_status)未使用、已使用、已过期
     */
    private String status;
 
    /**
     * 有效开始时间
     */
    private LocalDateTime effectiveStart;
 
    /**
     * 有效结束时间
     */
    private LocalDateTime effectiveEnd;
 
    /**
     * 使用订单
     */
    private String orderId;
 
    /**
     * 使用时间
     */
    private LocalDateTime usedTime;
 
    /**
     * 优惠券面值
     */
    private BigDecimal couponDiscountValue;
 
    /**
     * 使用条件(满多少钱)
     */
    private BigDecimal minOrderAmount;
 
    /**
     * 优惠券种类(活动优惠券、用户优惠券、会员优惠券,积分优惠券)
     */
    private String category;
 
    /**
     * 优惠券代码
     */
    private String couponCode;
 
    /**
     * 优惠券名称
     */
    private String couponName;
 
    private String couponDiscountType;
 
    private String getType;
 
    /**
     * 用户获取类型
     */
    private String getUserType;
 
    /**
     * 积分数量
     */
    private Integer point;
 
    /**
     * 会员等级
     */
    private Integer memberId;
 
    /**
     * 优惠券图片
     */
    private String imageUrl;
 
 
}