mitao
2024-06-06 3d2b51ea4520533de5e78f88dddf5b5c7dce4247
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
package com.sinata.modular.system.model;
 
import com.baomidou.mybatisplus.enums.IdType;
 
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author fq
 * @since 2023-03-05
 */
@Data
@TableName("my_coupon")
@ApiModel(value = "优惠券")
public class MyCoupon extends Model<MyCoupon> {
 
    private static final long serialVersionUID = 1L;
 
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;
    /**
     * banner图片
     */
    @ApiModelProperty(value = "banner图片")
    private String img;
    /**
     * 编号
     */
    @TableField("coupon_no")
    @ApiModelProperty(value = "编号")
    private String couponNo;
    /**
     * 优惠券名称
     */
    @ApiModelProperty(value = "优惠券名称")
    private String name;
    /**
     * 1 普通优惠券 2 有价优惠券
     */
    @ApiModelProperty(value = "1 普通优惠券 2 有价优惠券")
    private Integer type;
    /**
     * 优惠券类型 1 满减 2折扣 3礼品
     */
    @TableField("coupon_type")
    @ApiModelProperty(value = "优惠券类型 1 满减 2折扣 3礼品")
    private Integer couponType;
    /**
     * 可用类型 1 普通 2 黄金 3 钻石 4 通用
     */
    @TableField("server_type")
    @ApiModelProperty(value = "可用类型 1 普通 2 黄金 3 钻石 4 通用")
    private Integer serverType;
    /**
     * 优惠券张数 0 不限制 
     */
    @ApiModelProperty(value = "优惠券张数 0 不限制 ")
    private Integer number;
    /**
     * 单人可领张数 0 不限制 
     */
    @ApiModelProperty(value = "单人可领张数 0 不限制 ")
    private Integer quota;
 
 
    @ApiModelProperty(value = "剩余库存")
    private Integer  stock;
 
    /**
     * 优惠券面额
     */
    @ApiModelProperty(value = "优惠券面额")
    private BigDecimal amount;
    /**
     * 使用优惠券条件金额 0 不限制
     */
    @TableField("use_amount")
    @ApiModelProperty(value = "使用优惠券条件金额 0 不限制")
    private BigDecimal useAmount;
    /**
     * 有价优惠券 购买金额
     */
    @ApiModelProperty(value = "有价优惠券 购买金额")
    private BigDecimal price;
    /**
     * 领取条件 1 普通会员 2 vip会员 3 黄金营销员 4 城市合伙人 5市场总监
     */
    @ApiModelProperty(value = "领取条件 1 普通会员 2 vip会员 3 黄金营销员 4 城市合伙人 5市场总监")
    private String condition;
    /**
     * 限制区域 0不限制
     */
    @TableField("city_code")
    @ApiModelProperty(value = "限制区域 0不限制")
    private Integer cityCode;
    /**
     * 开始时间
     */
    @TableField("begin_time")
    @ApiModelProperty(value = "开始时间")
    private Date beginTime;
    /**
     * 结束时间
     */
    @TableField("end_time")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;
    /**
     * 条件发送用户集合
     */
    @ApiModelProperty(value = "条件发送用户集合")
    private String info;
    /**
     * 是否删除
     */
    @TableField("is_delete")
    @ApiModelProperty(value = "是否删除")
    private Integer isDelete;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
 
 
    @TableField(exist = false)
    @ApiModelProperty(value = "适用的商品信息")
    private String productId;
 
    @TableField(exist = false)
    @ApiModelProperty(value = "需要投递的人集合")
    private String userInfo;
    @TableField(exist = false)
    @ApiModelProperty(value = "需要投递的人集合")
    private String cityName;
    @TableField(exist = false)
    @ApiModelProperty(value = "需要投递的人集合")
    private String goodsName;
 
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
 
}