1
phpcjl
2024-12-16 decac42c276d690ca302f21655b5ea806a85a09f
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
package com.ruoyi.other.api.domain;
 
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.account.api.model.AppUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
 
/**
 * <p>
 * 
 * </p>
 *
 * @author luodangjia
 * @since 2024-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_coupon_info")
@ApiModel(value="CouponInfo对象", description="")
public class CouponInfo implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
 
    @ApiModelProperty(value = "删除标志(0=否,1=是)")
    @TableField("del_flag")
    @TableLogic
    private Integer delFlag;
 
    @ApiModelProperty(value = "添加时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
 
    @ApiModelProperty(value = "优惠券名称")
    @TableField("coupon_name")
    private String couponName;
 
    @ApiModelProperty(value = "优惠券类型 1'满减券',2'代金券',3'折扣券',4'商品券'")
    @TableField("coupon_type")
    private Integer couponType;
 
    @ApiModelProperty(value = "满x元")
    @TableField("condition_amount")
    private BigDecimal conditionAmount;
 
    @ApiModelProperty(value = "减x元")
    @TableField("discount_amount")
    private BigDecimal discountAmount;
 
    @ApiModelProperty(value = "代金x元")
    @TableField("money_amount")
    private BigDecimal moneyAmount;
 
    @ApiModelProperty(value = "折扣")
    @TableField("discount")
    private BigDecimal discount;
 
    @ApiModelProperty(value = "适用商品ids,全部-1")
    @TableField("for_good_ids")
    private String forGoodIds;
 
    @ApiModelProperty(value = "发放数量")
    @TableField("send_num")
    private Integer sendNum;
 
    @ApiModelProperty(value = "可领数量")
    @TableField("max_num")
    private Integer maxNum;
 
    @ApiModelProperty(value = "有效期类型 1指定时间内有效 2领取后x天有效")
    @TableField("period_type")
    private Integer periodType;
 
    @ApiModelProperty(value = "有效期开始时间")
    @TableField("period_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate periodStartTime;
 
    @ApiModelProperty(value = "有效期结束时间")
    @TableField("period_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate periodEndTime;
 
    @ApiModelProperty(value = "领取后x天有效")
    @TableField("period_days")
    private Integer periodDays;
 
    @ApiModelProperty(value = "开始发放时间")
    @TableField("send_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendStartTime;
 
    @ApiModelProperty(value = "结束发放时间")
    @TableField("send_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendEndTime;
 
    @ApiModelProperty(value = "1免费发放2积分兑换")
    @TableField("send_type")
    private Integer sendType;
 
    @ApiModelProperty(value = "兑换所需积分")
    @TableField("need_point")
    private BigDecimal needPoint;
 
    @ApiModelProperty(value = "可领用户  1全部 2指定人员 3指定会员 4 新人注册")
    @TableField("person_type")
    private Integer personType;
 
    @ApiModelProperty(value = "可领取对应的ids,用find_in_set查询")
    @TableField("person_ids")
    private String personIds;
 
    @ApiModelProperty(value = "上架状态:0-下架 1-上架")
    @TableField("shelf_status")
    private Integer shelfStatus;
 
    @ApiModelProperty(value = "指定会员等级,逗号隔开")
    private String vipIds;
 
    @ApiModelProperty(value = "已发放数量")
    @TableField(exist = false)
    private Long sendNumNow;
 
    @ApiModelProperty(value = "其他商品名称")
    private String goodsNameJson;
 
 
    @ApiModelProperty(value = "其他商品名称")
    @TableField(exist = false)
    private List<String> goodsNameList;
 
    @TableField(exist = false)
    private List<Goods> goods;
 
    @TableField(exist = false)
    private List<AppUser> appUserList;
 
 
    public String getIdStr(){
        return String.valueOf(id);
    }
}