package com.mzl.flower.entity.coupon;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.mzl.flower.base.BaseEntity;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
* @author @TaoJie
|
* @since 2024-08-27
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = true)
|
@Accessors(chain = true)
|
@TableName("t_coupon_record")
|
public class CouponRecordDO extends BaseEntity {
|
|
|
/**
|
* 优惠券ID
|
*/
|
private String couponId;
|
|
/**
|
* 用户id
|
*/
|
private String userId;
|
|
/**
|
* 商户ID
|
*/
|
private Long customerId;
|
|
/**
|
* 状态(coupon_record_status)未使用、已使用、已过期
|
*/
|
private String status;
|
|
/**
|
* 有效开始时间
|
*/
|
private LocalDateTime effectiveStart;
|
|
/**
|
* 有效结束时间
|
*/
|
private LocalDateTime effectiveEnd;
|
|
/**
|
* 使用订单
|
*/
|
private String orderId;
|
|
/**
|
* 使用时间
|
*/
|
private LocalDateTime usedTime;
|
|
/**
|
* 优惠券面值
|
*/
|
private BigDecimal couponDiscountValue;
|
|
/**
|
* 使用条件(满多少钱)
|
*/
|
private BigDecimal minOrderAmount;
|
|
/**
|
* 优惠券种类(活动优惠券、用户优惠券、会员优惠券,积分优惠券)
|
*/
|
private String category;
|
|
/**
|
* 优惠券代码
|
*/
|
private String couponCode;
|
|
/**
|
* 优惠券名称
|
*/
|
private String couponName;
|
|
private String couponDiscountType;
|
|
private String getType;
|
|
/**
|
* 用户获取类型
|
*/
|
private String getUserType;
|
|
/**
|
* 积分数量
|
*/
|
private Integer point;
|
|
/**
|
* 会员等级
|
*/
|
private Integer memberId;
|
|
/**
|
* 优惠券图片
|
*/
|
private String imageUrl;
|
|
|
}
|