删除优惠卷
新版优惠卷
This commit is contained in:
@@ -4,105 +4,69 @@ 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.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author yl
|
||||
* @email yl328572838@163.com
|
||||
* @date 2022-10-28 17:38:29
|
||||
*/
|
||||
@Data
|
||||
@TableName("sms_coupon")
|
||||
public class CouponEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@TableName("coupon")
|
||||
public class CouponEntity {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 优惠券类型 0:现金,1:折扣
|
||||
*/
|
||||
private Integer couponType;
|
||||
//优惠券类型 0现金 1折扣
|
||||
private Integer couponType;
|
||||
|
||||
/**
|
||||
* 优惠券名称
|
||||
*/
|
||||
private String couponName;
|
||||
//优惠卷范围 0无限制 1课程卷 2课程品类卷
|
||||
private Integer couponRange;
|
||||
|
||||
/**
|
||||
* 优惠券面额
|
||||
*/
|
||||
private BigDecimal couponAmount;
|
||||
//范围详情(课程卷是课程id,分割;课程品类卷是课程分类根id)
|
||||
private String rangeInfo;
|
||||
|
||||
/**
|
||||
* 优惠券封面图
|
||||
*/
|
||||
private String couponUrl;
|
||||
//优惠券名称
|
||||
private String couponName;
|
||||
|
||||
/**
|
||||
* 每人限领
|
||||
*/
|
||||
private Integer limitedCollar;
|
||||
//优惠券面额
|
||||
private BigDecimal couponAmount;
|
||||
|
||||
/**
|
||||
* 时效
|
||||
*/
|
||||
private String validity;
|
||||
//优惠券封面
|
||||
private String couponUrl;
|
||||
|
||||
/**
|
||||
* 生效方式 0:领取日生效 1: 设置生效日期
|
||||
*/
|
||||
private Integer takeEffectType;
|
||||
//每人限领
|
||||
private Integer limitedCollar;
|
||||
|
||||
/**
|
||||
* 生效日期
|
||||
*/
|
||||
private Date takeEffectDate;
|
||||
//生效方式 0长期有效 1领取生效 2自定义
|
||||
private Integer effectType;
|
||||
|
||||
/**
|
||||
* 截止日期
|
||||
*/
|
||||
private Date expirationDate;
|
||||
//时效(天)
|
||||
private Integer validity;
|
||||
|
||||
/**
|
||||
* 总发行数量
|
||||
*/
|
||||
public Integer totalCirculation;
|
||||
//生效日期
|
||||
private Date effectTime;
|
||||
|
||||
/**
|
||||
* 当前状态 0:全部,1:生效,2:已过期
|
||||
*/
|
||||
private String currentState;
|
||||
//截止日期
|
||||
private Date expireTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
//总发行数量
|
||||
private Integer totalCirculation;
|
||||
|
||||
/**
|
||||
* 删除标志
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
//当前状态 0 发放中 1结束
|
||||
private Integer currentState;
|
||||
|
||||
/**
|
||||
* 商品类型 0: 商品 ,1电子书
|
||||
*/
|
||||
private Integer couponProType;
|
||||
//备注
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 使用门槛
|
||||
*/
|
||||
private Integer useLevel;
|
||||
//使用门槛
|
||||
private Integer useLevel;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<Object> rangeList;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
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.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("coupon_history")
|
||||
public class CouponHistory {
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
//优惠券id
|
||||
private Integer couponId;
|
||||
|
||||
//用户id
|
||||
private Integer userId;
|
||||
|
||||
//订单id
|
||||
private Integer orderId;
|
||||
|
||||
//获取类型 0 后台赠送 1 主动获取
|
||||
private Integer getType;
|
||||
|
||||
//使用状态 0 未使用 1 已使用 2 已过期
|
||||
private Integer status;
|
||||
|
||||
//生效方式 0长期有效 1领取生效 2自定义
|
||||
private Integer effectType;
|
||||
|
||||
//生效时间
|
||||
private Date startTime;
|
||||
|
||||
//失效时间
|
||||
private Date endTime;
|
||||
|
||||
//使用时间
|
||||
private Date useTime;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
@TableField(exist = false)
|
||||
private CouponEntity couponEntity;
|
||||
@TableField(exist = false)
|
||||
private MyUserEntity userEntity;
|
||||
@TableField(exist = false)
|
||||
private BuyOrder buyOrder;
|
||||
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author yl
|
||||
* @email yl328572838@163.com
|
||||
* @date 2022-10-28 17:38:29
|
||||
*/
|
||||
@Data
|
||||
@TableName("sms_coupon_history")
|
||||
public class CouponHistoryEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 优惠券id
|
||||
*/
|
||||
private Long couponId;
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private Long memberId;
|
||||
/**
|
||||
* 订单id
|
||||
*/
|
||||
private Long orderId;
|
||||
/**
|
||||
* 优惠券码
|
||||
*/
|
||||
private String couponCode;
|
||||
/**
|
||||
* 领取人昵称
|
||||
*/
|
||||
private String memberNickname;
|
||||
/**
|
||||
* 获取类型:0->后台赠送;1->主动获取
|
||||
*/
|
||||
private Integer getType;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)//创建注解
|
||||
private Date createTime;
|
||||
/**
|
||||
* 使用状态:0->未使用;1->已使用;2->已过期
|
||||
*/
|
||||
private Integer useStatus;
|
||||
/**
|
||||
* 使用时间
|
||||
*/
|
||||
private Date useTime;
|
||||
/**
|
||||
* 订单号码
|
||||
*/
|
||||
private String orderSn;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String couponName;
|
||||
|
||||
|
||||
/**
|
||||
* 商品类型 0: 商品 ,1电子书
|
||||
*/
|
||||
private Integer couponProType;
|
||||
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author yl
|
||||
* @email yl328572838@163.com
|
||||
* @date 2022-10-28 17:38:29
|
||||
*/
|
||||
@Data
|
||||
@TableName("sms_coupon_product_category_relation")
|
||||
public class CouponProductCategoryRelationEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 优惠券id
|
||||
*/
|
||||
private Long couponId;
|
||||
/**
|
||||
* 商品分类id
|
||||
*/
|
||||
private Long productCategoryId;
|
||||
/**
|
||||
* 商品分类名称
|
||||
*/
|
||||
private String productCategoryName;
|
||||
/**
|
||||
* 父分类名称
|
||||
*/
|
||||
private String parentCategoryName;
|
||||
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package com.peanut.modules.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author yl
|
||||
* @email yl328572838@163.com
|
||||
* @date 2022-10-28 17:38:29
|
||||
*/
|
||||
@Data
|
||||
@TableName("sms_coupon_product_relation")
|
||||
public class CouponProductRelationEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 优惠券id
|
||||
*/
|
||||
private Long couponId;
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
private Long productId;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String productName;
|
||||
/**
|
||||
* 商品条码
|
||||
*/
|
||||
private String productSn;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user