From b2b82c1308fd2cf71e118ab8df8258f8160f010a Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期四, 29 八月 2024 15:52:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master-v2' into master-v2
---
src/main/java/com/mzl/flower/entity/coupon/CouponRecordDO.java | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 107 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/mzl/flower/entity/coupon/CouponRecordDO.java b/src/main/java/com/mzl/flower/entity/coupon/CouponRecordDO.java
new file mode 100644
index 0000000..964e122
--- /dev/null
+++ b/src/main/java/com/mzl/flower/entity/coupon/CouponRecordDO.java
@@ -0,0 +1,107 @@
+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 String 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 String orderNo;
+
+}
--
Gitblit v1.9.3