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/CouponTemplateDO.java | 149 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 149 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/mzl/flower/entity/coupon/CouponTemplateDO.java b/src/main/java/com/mzl/flower/entity/coupon/CouponTemplateDO.java new file mode 100644 index 0000000..f5c3ef5 --- /dev/null +++ b/src/main/java/com/mzl/flower/entity/coupon/CouponTemplateDO.java @@ -0,0 +1,149 @@ +package com.mzl.flower.entity.coupon; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.mzl.flower.base.BaseEntity; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.math.BigDecimal; +import java.time.LocalDateTime; + +/** + * @author @TaoJie + * @since 2024-08-22 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@Accessors(chain = true) +@TableName("t_coupon_template") +public class CouponTemplateDO extends BaseEntity { + + + /** + * 优惠券种类(活动优惠券、用户优惠券、会员优惠券,积分优惠券) + */ + private String category; + /** + * 优惠券代码(唯一) + */ + private String couponCode; + + /** + * 优惠券名称 + */ + private String couponName; + + /** + * 优惠券描述(使用规则) + */ + private String couponDescription; + + /** + * 发放数量 + */ + private Integer couponAmount; + + /** + * 优惠券类型(COUPON_TYPE)满减和无门槛 + */ + private String couponDiscountType; + + /** + * 优惠券面值 折扣值(百分比或金额) + */ + private BigDecimal couponDiscountValue; + + /** + * 使用条件,最小订单金额(可选)=》使用条件 + */ + private BigDecimal minOrderAmount; + + /** + * 最大折扣金额(可选,仅对百分比折扣类型适用) + */ + private BigDecimal maxDiscountAmount; + + /** + * 领取渠道(COUPON_GET_TYPE)首页弹窗、活动入口、领券中心 + */ + private String getType; + + /** + * 领取用户类型(COUPON_GET_USER_TYPE)全部用户,指定用户 + */ + private String getUserType; + + /** + * 领取开始时间 + */ + private LocalDateTime getStartDate; + + /** + * 领取结束时间 + */ + private LocalDateTime getEndDate; + + /** + * 每人限领 + */ + private Integer getLimit; + + /** + * 使用时间类型(COUPON_USAGE_TYPE)与领取时间一致、固定时间、领取后有效 + */ + private String usageType; + + /** + * 使用次数限制 + */ + private Integer usageLimit; + + /** + * 每个用户的使用次数限制 + */ + private Integer usagePerUser; + + /** + * 使用开始时间 + */ + private LocalDateTime usageStartDate; + + /** + * 使用结束时间 + */ + private LocalDateTime usageEndDate; + + /** + * 领取后有效类型(COUPON_usage_time_type)天、小时、分钟 + */ + private String usageTimeType; + + /** + * 领取后有效时间整数,比如90(天,小时,分钟) + */ + private Integer usageTimeNum; + + /** + * 优惠券状态(COUPON_STATUS) + */ + private String status; + + /** + * 兑换积分 + */ + private Integer point; + + /** + * 会员等级 + */ + private Integer memberId; + + /** + * 优惠券图片 + */ + private String imageUrl; + + +} -- Gitblit v1.9.3