rk
17 小时以前 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
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("`coupon`")
public class Coupon {
 
    @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 = "状态 0启用 1禁用", example = "0")
    @ExcelColumn(name = "状态")
    private Integer status;
 
    @ApiModelProperty(value = "备注")
    @ExcelColumn(name = "备注")
    private String remark;
 
    @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 = "推送后领取有效天数", example = "7")
    @ExcelColumn(name = "推送后领取有效天数")
    private Integer pushDays;
 
    @ApiModelProperty(value = "领取后有效天数", example = "30")
    @ExcelColumn(name = "领取后有效天数")
    private Integer validDays;
 
    @ApiModelProperty(value = "领取方式 0领取", example = "0")
    @ExcelColumn(name = "领取方式")
    private Integer getMethod;
 
    @ApiModelProperty(value = "使用类型:0=固定时长", example = "0")
    @ExcelColumn(name = "使用类型")
    private Integer useType;
 
    @ApiModelProperty(value = "优惠券类型:0=满减券", example = "0")
    @ExcelColumn(name = "优惠券类型")
    private Integer couponType;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "修改人名称")
    private String editorName;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "领取数量")
    private Long claimCount;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "使用数量")
    private Long usedCount;
}