提交 | 用户 | age
|
3b4cc5
|
1 |
package com.hz.his.dto.coupon; |
C |
2 |
|
|
3 |
|
|
4 |
import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
|
5 |
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
|
6 |
import com.hz.his.dto.PageDto; |
|
7 |
import lombok.Data; |
|
8 |
|
|
9 |
import java.math.BigDecimal; |
|
10 |
import java.util.Date; |
|
11 |
|
|
12 |
/** |
|
13 |
* 用户优惠券详情 |
|
14 |
* @author cjh |
|
15 |
*/ |
|
16 |
@Data |
|
17 |
public class CouponNumberDto{ |
|
18 |
/**标识*/ |
|
19 |
private String id; |
1580f7
|
20 |
|
3b4cc5
|
21 |
/**标题*/ |
C |
22 |
private String title; |
|
23 |
/**有效开始时间*/ |
|
24 |
private Date startTime; |
|
25 |
/**有效结束时间*/ |
|
26 |
private Date endTime; |
|
27 |
|
|
28 |
/**优惠类型(0折扣,1金额)*/ |
|
29 |
private Integer type = TYPE_DIS; |
|
30 |
|
|
31 |
/**条件类型(0无条件,1满金额,2满件数;暂时预留,默认满金额)*/ |
|
32 |
private Integer conditionType; |
|
33 |
/**优惠折扣(单位:百分比,默认100)*/ |
|
34 |
private BigDecimal discountNum; |
|
35 |
/**优惠金额(元)*/ |
|
36 |
private BigDecimal discountAmount; |
|
37 |
/**满足金额(元)(满足该金额便可用)*/ |
|
38 |
private BigDecimal amountSatisfied = BigDecimal.ZERO; |
|
39 |
|
|
40 |
/**是否能使用增值金,0:不能,1:可以*/ |
|
41 |
private Integer isIncrement = YES; |
|
42 |
|
|
43 |
/**项目使用类型(-1取消,0指定项目,1项目通用)*/ |
|
44 |
private Integer useProjectType; |
|
45 |
/**商品使用类型(-1取消,2指定商品,3商品通用)*/ |
|
46 |
private Integer useGoodsType; |
|
47 |
/**促销使用类型(-1取消,8指定促销,9促销通用)*/ |
|
48 |
private Integer usePromotionType; |
|
49 |
/**卡项使用类型(-1取消,10指定卡项,11卡项通用)*/ |
|
50 |
private Integer useCardType; |
|
51 |
/**团购商品使用类型(4指定商品,5商品通用)*/ |
|
52 |
private Integer commodityType = -1; |
|
53 |
/**积分商品使用类型(6指定商品,7商品通用)*/ |
|
54 |
private Integer integralType = -1; |
|
55 |
|
|
56 |
/**描述*/ |
|
57 |
private String describeInfo; |
|
58 |
|
|
59 |
/**计时类型(0时间段,1领取有效时长(领取时间叠加时间),2无效时长)*/ |
|
60 |
private Integer timeType; |
|
61 |
|
1580f7
|
62 |
/** 优惠券id */ |
F |
63 |
private String couponId; |
|
64 |
/** 优惠券标题 */ |
|
65 |
private String couponTitle; |
|
66 |
/** 优惠券码id */ |
|
67 |
private String couponNumberId; |
|
68 |
|
3b4cc5
|
69 |
/**计时类型-时间段*/ |
C |
70 |
public static final int TIME_TYPE_SLOT = 0; |
|
71 |
/**计时类型-领取时长(领取时间叠加时间)*/ |
|
72 |
public static final int TIME_TYPE_HOURS = 1; |
|
73 |
/**计时类型-无限时长*/ |
|
74 |
public static final int TIME_TYPE_ALL = 2; |
|
75 |
|
|
76 |
/**条件类型-无条件*/ |
|
77 |
public static final int COND_TYPE_NOT = 0; |
|
78 |
/**条件类型-金额*/ |
|
79 |
public static final int COND_TYPE_MONEY = 1; |
|
80 |
/**条件类型-件数*/ |
|
81 |
public static final int COND_TYPE_ITEM = 2; |
|
82 |
|
|
83 |
/**优惠类型-取消*/ |
|
84 |
public static final int TYPE_CANCEL = -1; |
|
85 |
/**优惠类型-折扣*/ |
|
86 |
public static final int TYPE_DIS = 0; |
|
87 |
/**优惠类型-金额*/ |
|
88 |
public static final int TYPE_AMOUNT = 1; |
|
89 |
/**优惠类型-权益商品抵扣*/ |
|
90 |
public static final int TYPE_SERVICE = 2; |
|
91 |
|
|
92 |
/**数字0*/ |
|
93 |
public static final int NO = 0; |
|
94 |
/**数字1*/ |
|
95 |
public static final int YES = 1; |
|
96 |
|
|
97 |
|
|
98 |
} |