From a768dc3daa04d35fedfbe75c0a59b9b2545b85c4 Mon Sep 17 00:00:00 2001
From: gongzuming <gongzuming>
Date: 星期四, 19 九月 2024 16:59:33 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master-v2'

---
 src/main/java/com/mzl/flower/entity/coupon/CouponRecordDO.java |  113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 113 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..6233710
--- /dev/null
+++ b/src/main/java/com/mzl/flower/entity/coupon/CouponRecordDO.java
@@ -0,0 +1,113 @@
+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;
+
+
+}

--
Gitblit v1.9.3