rk
16 小时以前 f52355f9be7f130b6f4655c05418d5dc3cbe4d2f
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
package com.doumee.dao.business.model;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.doumee.core.annotation.excel.ExcelColumn;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.util.Date;
 
@Data
@ApiModel("用户优惠券")
@TableName("`member_coupon`")
public class MemberCoupon {
 
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", example = "1")
    @ExcelColumn(name = "主键")
    private Integer id;
 
    @ApiModelProperty(value = "创建人编码", example = "1")
    @ExcelColumn(name = "创建人编码")
    private Integer creator;
 
    @ApiModelProperty(value = "创建时间")
    @ExcelColumn(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
 
    @ApiModelProperty(value = "更新人编码", example = "1")
    @ExcelColumn(name = "更新人编码")
    private Integer editor;
 
    @ApiModelProperty(value = "更新时间")
    @ExcelColumn(name = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date editDate;
 
    @ApiModelProperty(value = "是否删除 0否 1是", example = "0")
    @ExcelColumn(name = "是否删除")
    private Integer isdeleted;
 
    @ApiModelProperty(value = "备注")
    @ExcelColumn(name = "备注")
    private String remark;
 
    @ApiModelProperty(value = "优惠券主键关联表", example = "1")
    @ExcelColumn(name = "优惠券主键")
    private Integer couponId;
 
    @ApiModelProperty(value = "用户编码(关联member表)", example = "1")
    @ExcelColumn(name = "用户编码")
    private Integer memberId;
 
    @ApiModelProperty(value = "状态:0=待领取;1=已领取;2=已使用;98=未领取已过期;99=已过期", example = "0")
    @ExcelColumn(name = "状态")
    private Integer status;
 
    @ApiModelProperty(value = "领取有效期时间")
    @ExcelColumn(name = "领取有效期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validDate;
 
    @ApiModelProperty(value = "有效期开始时间")
    @ExcelColumn(name = "有效期开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
 
    @ApiModelProperty(value = "有效期结束时间")
    @ExcelColumn(name = "有效期结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
 
    @ApiModelProperty(value = "使用时间")
    @ExcelColumn(name = "使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useDate;
 
    @ApiModelProperty(value = "关联订单主键", example = "1")
    @ExcelColumn(name = "关联订单主键")
    private Integer orderId;
 
    @ApiModelProperty(value = "名称")
    @ExcelColumn(name = "名称")
    private String name;
 
    @ApiModelProperty(value = "说明")
    @ExcelColumn(name = "说明")
    private String info;
 
    @ApiModelProperty(value = "类型 0平台优惠券", example = "0")
    @ExcelColumn(name = "类型")
    private Integer type;
 
    @ApiModelProperty(value = "满额(分)")
    @ExcelColumn(name = "满额")
    private Long limitPrice;
 
    @ApiModelProperty(value = "优惠金额(分)")
    @ExcelColumn(name = "优惠金额")
    private Long price;
 
    @ApiModelProperty(value = "领取方式 0领取", example = "0")
    @ExcelColumn(name = "领取方式")
    private Integer getMethod;
 
    @ApiModelProperty(value = "优惠券类型:0=满减券", example = "0")
    @ExcelColumn(name = "优惠券类型")
    private Integer couponType;
 
    @ApiModelProperty(value = "推送后领取有效天数", example = "7")
    @ExcelColumn(name = "推送后领取有效天数")
    private Integer pushDays;
 
    @ApiModelProperty(value = "领取后有效天数", example = "30")
    @ExcelColumn(name = "领取后有效天数")
    private Integer validDays;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "会员姓名")
    private String memberName;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "会员电话")
    private String memberTelephone;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "会员昵称")
    private String memberNickName;
}