New file |
| | |
| | | package com.hz.his.dto.coupon; |
| | | |
| | | |
| | | import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
| | | import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
| | | import com.hz.his.dto.PageDto; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 用户优惠券详情 |
| | | * @author cjh |
| | | */ |
| | | @Data |
| | | public class CouponNumberDto{ |
| | | /**标识*/ |
| | | private String id; |
| | | /**标题*/ |
| | | private String title; |
| | | /**有效开始时间*/ |
| | | private Date startTime; |
| | | /**有效结束时间*/ |
| | | private Date endTime; |
| | | |
| | | /**优惠类型(0折扣,1金额)*/ |
| | | private Integer type = TYPE_DIS; |
| | | |
| | | /**条件类型(0无条件,1满金额,2满件数;暂时预留,默认满金额)*/ |
| | | private Integer conditionType; |
| | | /**优惠折扣(单位:百分比,默认100)*/ |
| | | private BigDecimal discountNum; |
| | | /**优惠金额(元)*/ |
| | | private BigDecimal discountAmount; |
| | | /**满足金额(元)(满足该金额便可用)*/ |
| | | private BigDecimal amountSatisfied = BigDecimal.ZERO; |
| | | |
| | | /**是否能使用增值金,0:不能,1:可以*/ |
| | | private Integer isIncrement = YES; |
| | | |
| | | /**项目使用类型(-1取消,0指定项目,1项目通用)*/ |
| | | private Integer useProjectType; |
| | | /**商品使用类型(-1取消,2指定商品,3商品通用)*/ |
| | | private Integer useGoodsType; |
| | | /**促销使用类型(-1取消,8指定促销,9促销通用)*/ |
| | | private Integer usePromotionType; |
| | | /**卡项使用类型(-1取消,10指定卡项,11卡项通用)*/ |
| | | private Integer useCardType; |
| | | /**团购商品使用类型(4指定商品,5商品通用)*/ |
| | | private Integer commodityType = -1; |
| | | /**积分商品使用类型(6指定商品,7商品通用)*/ |
| | | private Integer integralType = -1; |
| | | |
| | | /**描述*/ |
| | | private String describeInfo; |
| | | |
| | | /**计时类型(0时间段,1领取有效时长(领取时间叠加时间),2无效时长)*/ |
| | | private Integer timeType; |
| | | |
| | | /**计时类型-时间段*/ |
| | | public static final int TIME_TYPE_SLOT = 0; |
| | | /**计时类型-领取时长(领取时间叠加时间)*/ |
| | | public static final int TIME_TYPE_HOURS = 1; |
| | | /**计时类型-无限时长*/ |
| | | public static final int TIME_TYPE_ALL = 2; |
| | | |
| | | /**条件类型-无条件*/ |
| | | public static final int COND_TYPE_NOT = 0; |
| | | /**条件类型-金额*/ |
| | | public static final int COND_TYPE_MONEY = 1; |
| | | /**条件类型-件数*/ |
| | | public static final int COND_TYPE_ITEM = 2; |
| | | |
| | | /**优惠类型-取消*/ |
| | | public static final int TYPE_CANCEL = -1; |
| | | /**优惠类型-折扣*/ |
| | | public static final int TYPE_DIS = 0; |
| | | /**优惠类型-金额*/ |
| | | public static final int TYPE_AMOUNT = 1; |
| | | /**优惠类型-权益商品抵扣*/ |
| | | public static final int TYPE_SERVICE = 2; |
| | | |
| | | /**数字0*/ |
| | | public static final int NO = 0; |
| | | /**数字1*/ |
| | | public static final int YES = 1; |
| | | |
| | | |
| | | } |