|
@@ -14,6 +14,9 @@ import com.qs.mp.common.enums.CouponTypeEnum;
|
|
|
import com.qs.mp.common.enums.CouponUseAreaEnum;
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
/**
|
|
@@ -23,6 +26,7 @@ import lombok.Data;
|
|
|
*/
|
|
|
@TableName("mp_coupon")
|
|
|
@Data
|
|
|
+@ApiModel("优惠券实体类")
|
|
|
public class Coupon implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@@ -30,18 +34,21 @@ public class Coupon implements Serializable {
|
|
|
/**
|
|
|
* 主键
|
|
|
*/
|
|
|
+ @ApiModelProperty("优惠券id")
|
|
|
@TableId(value = "coupon_id", type = IdType.AUTO)
|
|
|
private Long couponId;
|
|
|
|
|
|
/**
|
|
|
* 标题
|
|
|
*/
|
|
|
+ @ApiModelProperty("标题")
|
|
|
@TableField("title")
|
|
|
private String title;
|
|
|
|
|
|
/**
|
|
|
* 类型;1用户盲票购买优惠券、2用户门店消费优惠券、3经销商盲票采购优惠券
|
|
|
*/
|
|
|
+ @ApiModelProperty("类型;1用户盲票购买优惠券、2用户门店消费优惠券、3经销商盲票采购优惠券")
|
|
|
@TableField("type")
|
|
|
@JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
private CouponTypeEnum type;
|
|
@@ -49,18 +56,21 @@ public class Coupon implements Serializable {
|
|
|
/**
|
|
|
* 图片
|
|
|
*/
|
|
|
+ @ApiModelProperty("图片")
|
|
|
@TableField("pic_url")
|
|
|
private String picUrl;
|
|
|
|
|
|
/**
|
|
|
* 使用说明
|
|
|
*/
|
|
|
+ @ApiModelProperty("使用说明")
|
|
|
@TableField("description")
|
|
|
private String description;
|
|
|
|
|
|
/**
|
|
|
* 优惠类型;1代金券、2折扣券、3兑换券
|
|
|
*/
|
|
|
+ @ApiModelProperty("优惠类型;1代金券、2折扣券、3兑换券")
|
|
|
@TableField("discount_type")
|
|
|
@JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
private CouponDiscountTypeEnum discountType;
|
|
@@ -68,18 +78,21 @@ public class Coupon implements Serializable {
|
|
|
/**
|
|
|
* 优惠金额(比例)
|
|
|
*/
|
|
|
+ @ApiModelProperty("优惠金额(比例)")
|
|
|
@TableField("discount")
|
|
|
private Integer discount;
|
|
|
|
|
|
/**
|
|
|
* 最低消费金额
|
|
|
*/
|
|
|
+ @ApiModelProperty("最低消费金额")
|
|
|
@TableField("min_order_amt")
|
|
|
private Integer minOrderAmt;
|
|
|
|
|
|
/**
|
|
|
* 渠道代金券,渠道承担比例
|
|
|
*/
|
|
|
+ @ApiModelProperty("渠道代金券,渠道承担比例")
|
|
|
@TableField("channel_shared_rate")
|
|
|
private Integer channelSharedRate;
|
|
|
|
|
@@ -87,6 +100,7 @@ public class Coupon implements Serializable {
|
|
|
/**
|
|
|
* 状态;off下架 on正常
|
|
|
*/
|
|
|
+ @ApiModelProperty("状态;off下架 on正常")
|
|
|
@TableField("status")
|
|
|
@JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
private CouponStatusEnum status;
|
|
@@ -96,6 +110,7 @@ public class Coupon implements Serializable {
|
|
|
* 0:进票门店 1、指定盲票 2:所有门票
|
|
|
*
|
|
|
*/
|
|
|
+ @ApiModelProperty("使用范围;0通用 1生成券时指定范围 2发放时动态指定范围")
|
|
|
@TableField("use_area")
|
|
|
@JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
private CouponUseAreaEnum useArea;
|
|
@@ -103,6 +118,7 @@ public class Coupon implements Serializable {
|
|
|
/**
|
|
|
* 发放方式;1系统发放 2用户主动领取
|
|
|
*/
|
|
|
+ @ApiModelProperty("发放方式;1系统发放 2用户主动领取")
|
|
|
@TableField("distribute_type")
|
|
|
@JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
|
|
|
private CouponDistributeTypeEnum distributeType;
|
|
@@ -110,12 +126,14 @@ public class Coupon implements Serializable {
|
|
|
/**
|
|
|
* 叠加使用;0不允许 1允许
|
|
|
*/
|
|
|
+ @ApiModelProperty("叠加使用;0不允许 1允许")
|
|
|
@TableField("composite_use")
|
|
|
private Integer compositeUse;
|
|
|
|
|
|
/**
|
|
|
* 有效期天数;从领券后开始多少天有效,0则使用绝对有效期
|
|
|
*/
|
|
|
+ @ApiModelProperty("有效期天数;从领券后开始多少天有效,0则使用绝对有效期")
|
|
|
@TableField("due_days")
|
|
|
private Integer dueDays;
|
|
|
|