77 lines
1.7 KiB
Java
77 lines
1.7 KiB
Java
package com.peanut.modules.common.entity;
|
||
|
||
import com.baomidou.mybatisplus.annotation.TableField;
|
||
import com.baomidou.mybatisplus.annotation.TableId;
|
||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||
import com.baomidou.mybatisplus.annotation.TableName;
|
||
import lombok.Data;
|
||
|
||
import java.math.BigDecimal;
|
||
import java.util.Date;
|
||
import java.util.List;
|
||
|
||
@Data
|
||
@TableName("coupon")
|
||
public class CouponEntity {
|
||
|
||
@TableId
|
||
private Integer id;
|
||
|
||
//优惠券类型 0现金 1折扣
|
||
private Integer couponType;
|
||
|
||
//优惠卷范围 0无限制 1课程卷 2课程品类卷 3全部课程 4商品 5全部商品
|
||
private Integer couponRange;
|
||
|
||
//范围详情(课程卷是课程id,分割 课程品类卷是课程分类根id,分割;商品id,分割)
|
||
private String rangeInfo;
|
||
|
||
//优惠券名称
|
||
private String couponName;
|
||
|
||
//优惠券面额
|
||
private BigDecimal couponAmount;
|
||
|
||
//优惠券封面
|
||
private String couponUrl;
|
||
|
||
//每人限领
|
||
private Integer limitedCollar;
|
||
|
||
//生效方式 0长期有效 1领取生效 2自定义
|
||
private Integer effectType;
|
||
|
||
//时效(天)
|
||
private Integer validity;
|
||
|
||
//生效日期
|
||
private Date effectTime;
|
||
|
||
//截止日期
|
||
private Date expireTime;
|
||
|
||
//总发行数量
|
||
private Integer totalCirculation;
|
||
|
||
//当前状态 0 发放中 1结束
|
||
private Integer currentState;
|
||
|
||
//备注
|
||
private String remark;
|
||
|
||
//使用门槛
|
||
private Integer useLevel;
|
||
|
||
private Date createTime;
|
||
|
||
@TableLogic
|
||
private Integer delFlag;
|
||
|
||
@TableField(exist = false)
|
||
private int grantCount;
|
||
@TableField(exist = false)
|
||
private List<Object> rangeList;
|
||
@TableField(exist = false)
|
||
private String usable;
|
||
}
|