package com.dsh.activity.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 优惠券
|
* @author zhibing.pu
|
* @date 2023/6/24 11:04
|
*/
|
@Data
|
@TableName("t_coupon")
|
public class Coupon {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 优惠券名称
|
*/
|
@TableField("name")
|
private String name;
|
/**
|
* 优惠券类型(1=满减券,2=代金券,3=体验券)
|
*/
|
@TableField("type")
|
private Integer type;
|
/**
|
* 优惠券规则JSON
|
*/
|
@TableField("content")
|
private String content;
|
/**
|
* 优惠券说明
|
*/
|
@TableField("illustrate")
|
private String illustrate;
|
/**
|
* 发放方式(1=积分购买,2=注册赠送,3=自动发券)
|
*/
|
@TableField("distributionMethod")
|
private Integer distributionMethod;
|
/**
|
* 兑换方式(1=积分,2=积分+现金)
|
*/
|
@TableField("redemptionMethod")
|
private Integer redemptionMethod;
|
/**
|
* 所需现金
|
*/
|
@TableField("cash")
|
private Double cash;
|
/**
|
* 所需积分
|
*/
|
@TableField("integral")
|
private Integer integral;
|
/**
|
* 用户人群(1=全部用户,2=年度会员,3=已有学员用户)
|
*/
|
@TableField("userPopulation")
|
private Integer userPopulation;
|
/**
|
* 发放数量
|
*/
|
@TableField("quantityIssued")
|
private Integer quantityIssued;
|
/**
|
* 限领数量
|
*/
|
@TableField("pickUpQuantity")
|
private Integer pickUpQuantity;
|
/**
|
* 开始时间
|
*/
|
@TableField("startTime")
|
private Date startTime;
|
/**
|
* 结束时间
|
*/
|
@TableField("endTime")
|
private Date endTime;
|
/**
|
* 使用范围(1=全国,2=指定城市,3=指定门店)
|
*/
|
@TableField("useScope")
|
private Integer useScope;
|
/**
|
* 省
|
*/
|
@TableField("province")
|
private Integer province;
|
/**
|
* 省编号
|
*/
|
@TableField("provinceCode")
|
private String provinceCode;
|
/**
|
* 市
|
*/
|
@TableField("city")
|
private String city;
|
/**
|
* 市编号
|
*/
|
@TableField("cityCode")
|
private String cityCode;
|
/**
|
* 审核状态(1=待审核,2=已通过,3=已拒绝)
|
*/
|
@TableField("auditStatus")
|
private Integer auditStatus;
|
/**
|
* 审核人id
|
*/
|
@TableField("auditUserId")
|
private Integer auditUserId;
|
/**
|
* 审核备注
|
*/
|
@TableField("auditRemark")
|
private String auditRemark;
|
/**
|
* 状态(1=未开始,2=已开始,3=已结束,4=已取消)
|
*/
|
@TableField("status")
|
private Integer status;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
@TableField("state")
|
private Integer state;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
private Date insertTime;
|
}
|