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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
package com.mzl.flower.dto.response.coupon;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mzl.flower.base.AbstractTransDTO;
import com.mzl.flower.base.annotation.DictTrans;
import com.mzl.flower.entity.menber.Member;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@Data
public class CouponTemplateVO extends AbstractTransDTO {
 
    @ApiModelProperty(value = "主键")
    @DictTrans(target = "id",codeType = "id")
    private String id;
 
    /**
     * 优惠券种类(活动优惠券、用户优惠券、会员优惠券,积分优惠券)
     */
    @ApiModelProperty(value = "优惠券种类")
    @DictTrans(target = "categoryName",codeType = "COUPON_CATEGORY")
    private String category;
    /**
     * 优惠券代码(唯一)
     */
    @ApiModelProperty(value = "优惠券代码")
    private String couponCode;
 
    /**
     * 优惠券名称
     */
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;
 
    /**
     * 优惠券描述(使用规则)
     */
    @ApiModelProperty(value = "优惠券描述(使用规则)")
    private String couponDescription;
 
    /**
     * 发放数量
     */
    @ApiModelProperty(value = "发放数量")
    private Integer couponAmount;
 
    /**
     * 优惠券类型(COUPON_TYPE)满减和无门槛
     */
    @ApiModelProperty(value = "优惠券类型 ")
    @DictTrans(target = "couponDiscountTypeName",codeType = "COUPON_TYPE")
    private String couponDiscountType;
 
    /**
     * 优惠券面值  折扣值(百分比或金额)
     */
    @ApiModelProperty(value = "优惠券面值")
    private BigDecimal couponDiscountValue;
 
    /**
     * 使用条件,最小订单金额(可选)=》使用条件
     */
    @ApiModelProperty(value = "使用条件")
    private BigDecimal minOrderAmount;
 
    /**
     * 最大折扣金额(可选,仅对百分比折扣类型适用)
     */
    private BigDecimal maxDiscountAmount;
 
    /**
     * 领取渠道(COUPON_GET_TYPE)首页弹窗、活动入口、领券中心
     */
    @ApiModelProperty(value = "领取渠道(COUPON_GET_TYPE)")
    @DictTrans(target = "getTypeName",codeType = "COUPON_GET_TYPE")
    private String getType;
 
    /**
     * 领取用户类型(COUPON_GET_USER_TYPE)全部用户,指定用户
     */
    @ApiModelProperty(value = "领取用户类型(COUPON_GET_USER_TYPE)")
    @DictTrans(target = "getUserTypeName",codeType = "COUPON_GET_USER_TYPE")
    private String getUserType;
 
    /**
     * 领取开始时间
     */
    @ApiModelProperty(value = "领取开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime getStartDate;
 
    /**
     * 领取结束时间
     */
    @ApiModelProperty(value = "领取结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime getEndDate;
 
    /**
     * 每人限领
     */
    @ApiModelProperty(value = "每人限领")
    private Integer getLimit;
 
    /**
     * 使用时间类型(COUPON_USAGE_TYPE)与领取时间一致、固定时间、领取后有效
     */
    @ApiModelProperty(value = "使用时间类型(COUPON_USAGE_TYPE)")
    @DictTrans(target = "usageTypeName",codeType = "COUPON_USAGE_TYPE")
    private String usageType;
 
    /**
     * 使用次数限制
     */
    @ApiModelProperty(value = "使用次数限制")
    private Integer usageLimit;
 
    /**
     * 每个用户的使用次数限制
     */
    @ApiModelProperty(value = "每个用户的使用次数限制")
    private Integer usagePerUser;
 
    /**
     * 使用开始时间
     */
    @ApiModelProperty(value = "使用开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime usageStartDate;
 
    /**
     * 使用结束时间
     */
    @ApiModelProperty(value = "使用结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime usageEndDate;
 
    /**
     * 领取后有效类型(COUPON_usage_time_type)天、小时、分钟
     */
    @ApiModelProperty(value = "领取后有效类型(COUPON_USAGE_TIME_TYPE)")
    @DictTrans(target = "usageTimeTypeName",codeType = "COUPON_USAGE_TIME_TYPE")
    private String usageTimeType;
 
    /**
     * 领取后有效时间整数,比如90(天,小时,分钟)
     */
    @ApiModelProperty(value = "领取后有效时间整数")
    private Integer usageTimeNum;
 
    /**
     * 优惠券状态(COUPON_STATUS)
     */
    @ApiModelProperty(value = "优惠券状态(COUPON_STATUS)")
    @DictTrans(target = "statusName",codeType = "COUPON_STATUS")
    private String status;
 
    /**
     * 兑换积分
     */
    @ApiModelProperty(value = "兑换积分")
    private Integer point;
 
    /**
     * 优惠券类型名称 COUPON_TYPE)满减和无门槛
     */
    @ApiModelProperty(value = "优惠券类型名称 ")
    private String couponDiscountTypeName;
 
    /**
     * 领取渠道(COUPON_GET_TYPE)首页弹窗、活动入口、领券中心
     */
    @ApiModelProperty(value = "领取渠道(COUPON_GET_TYPE)")
    private String getTypeName;
 
    /**
     * 领取用户类型(COUPON_GET_USER_TYPE)全部用户,指定用户
     */
    @ApiModelProperty(value = "领取用户类型")
    private String getUserTypeName;
 
    /**
     * 已经领取数
     */
    @ApiModelProperty(value = "已经领取数")
    private Integer getNum;
 
    /**
     * 未领取数
     */
    @ApiModelProperty(value = "未领取数")
    private Integer unGetNum;
 
    @ApiModelProperty(value = "优惠券种类名称")
    private String categoryName;
 
    /**
     * 状态名称
     */
    @ApiModelProperty(value = "状态名称")
    private String statusName;
 
    @ApiModelProperty(value = "领取后有效类型")
    private String usageTimeTypeName;
 
    @ApiModelProperty(value = "使用时间类型")
    private String usageTypeName;
 
    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;
 
    /**
     * 更新人名称
     */
    @ApiModelProperty(value = "更新人名称")
    private String updateByName;
 
    @ApiModelProperty(value = "会员等级")
 
    private Integer memberId;
 
    @ApiModelProperty(value = "会员等级名称")
    private String memberName;
 
 
    @ApiModelProperty(value = "商户列表")
    List<CouponTemplateCustomerVO> customerList;
 
 
    @ApiModelProperty(value = "会员等级对象")
    private Member member;
 
    @ApiModelProperty(value = "发放时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @DateTimeFormat
    private LocalDateTime createTime;
 
    @ApiModelProperty(value = "优惠券图片")
    private String imageUrl;
 
}