提交 | 用户 | 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; |
|
20 |
/**标题*/ |
|
21 |
private String title; |
|
22 |
/**有效开始时间*/ |
|
23 |
private Date startTime; |
|
24 |
/**有效结束时间*/ |
|
25 |
private Date endTime; |
|
26 |
|
|
27 |
/**优惠类型(0折扣,1金额)*/ |
|
28 |
private Integer type = TYPE_DIS; |
|
29 |
|
|
30 |
/**条件类型(0无条件,1满金额,2满件数;暂时预留,默认满金额)*/ |
|
31 |
private Integer conditionType; |
|
32 |
/**优惠折扣(单位:百分比,默认100)*/ |
|
33 |
private BigDecimal discountNum; |
|
34 |
/**优惠金额(元)*/ |
|
35 |
private BigDecimal discountAmount; |
|
36 |
/**满足金额(元)(满足该金额便可用)*/ |
|
37 |
private BigDecimal amountSatisfied = BigDecimal.ZERO; |
|
38 |
|
|
39 |
/**是否能使用增值金,0:不能,1:可以*/ |
|
40 |
private Integer isIncrement = YES; |
|
41 |
|
|
42 |
/**项目使用类型(-1取消,0指定项目,1项目通用)*/ |
|
43 |
private Integer useProjectType; |
|
44 |
/**商品使用类型(-1取消,2指定商品,3商品通用)*/ |
|
45 |
private Integer useGoodsType; |
|
46 |
/**促销使用类型(-1取消,8指定促销,9促销通用)*/ |
|
47 |
private Integer usePromotionType; |
|
48 |
/**卡项使用类型(-1取消,10指定卡项,11卡项通用)*/ |
|
49 |
private Integer useCardType; |
|
50 |
/**团购商品使用类型(4指定商品,5商品通用)*/ |
|
51 |
private Integer commodityType = -1; |
|
52 |
/**积分商品使用类型(6指定商品,7商品通用)*/ |
|
53 |
private Integer integralType = -1; |
|
54 |
|
|
55 |
/**描述*/ |
|
56 |
private String describeInfo; |
|
57 |
|
|
58 |
/**计时类型(0时间段,1领取有效时长(领取时间叠加时间),2无效时长)*/ |
|
59 |
private Integer timeType; |
|
60 |
|
|
61 |
/**计时类型-时间段*/ |
|
62 |
public static final int TIME_TYPE_SLOT = 0; |
|
63 |
/**计时类型-领取时长(领取时间叠加时间)*/ |
|
64 |
public static final int TIME_TYPE_HOURS = 1; |
|
65 |
/**计时类型-无限时长*/ |
|
66 |
public static final int TIME_TYPE_ALL = 2; |
|
67 |
|
|
68 |
/**条件类型-无条件*/ |
|
69 |
public static final int COND_TYPE_NOT = 0; |
|
70 |
/**条件类型-金额*/ |
|
71 |
public static final int COND_TYPE_MONEY = 1; |
|
72 |
/**条件类型-件数*/ |
|
73 |
public static final int COND_TYPE_ITEM = 2; |
|
74 |
|
|
75 |
/**优惠类型-取消*/ |
|
76 |
public static final int TYPE_CANCEL = -1; |
|
77 |
/**优惠类型-折扣*/ |
|
78 |
public static final int TYPE_DIS = 0; |
|
79 |
/**优惠类型-金额*/ |
|
80 |
public static final int TYPE_AMOUNT = 1; |
|
81 |
/**优惠类型-权益商品抵扣*/ |
|
82 |
public static final int TYPE_SERVICE = 2; |
|
83 |
|
|
84 |
/**数字0*/ |
|
85 |
public static final int NO = 0; |
|
86 |
/**数字1*/ |
|
87 |
public static final int YES = 1; |
|
88 |
|
|
89 |
|
|
90 |
} |