|
@@ -0,0 +1,212 @@
|
|
|
|
+package com.ylx.massage.domain;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
|
|
+import com.baomidou.mybatisplus.extension.activerecord.Model;
|
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
|
+
|
|
|
|
+import java.io.Serializable;
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
+import java.util.Date;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 优惠券的规则信息(Coupon)表实体类
|
|
|
|
+ *
|
|
|
|
+ * @author makejava
|
|
|
|
+ * @since 2024-05-13 16:32:59
|
|
|
|
+ */
|
|
|
|
+@SuppressWarnings("serial")
|
|
|
|
+public class Coupon extends Model<Coupon> {
|
|
|
|
+ //优惠券id
|
|
|
|
+ @ApiModelProperty("优惠券id")
|
|
|
|
+ private String id;
|
|
|
|
+
|
|
|
|
+ //优惠券名称,可以和活动名称保持一致
|
|
|
|
+ @ApiModelProperty("优惠券名称,可以和活动名称保持一致")
|
|
|
|
+ private String name;
|
|
|
|
+
|
|
|
|
+ //优惠券类型,1:普通券
|
|
|
|
+ @ApiModelProperty("优惠券类型,1:普通券")
|
|
|
|
+ private Integer type;
|
|
|
|
+
|
|
|
|
+ //优惠类型,1:无门槛, 2:折扣, 3:满减
|
|
|
|
+ @ApiModelProperty("优惠类型,1:无门槛, 2:折扣, 3:满减")
|
|
|
|
+ private Integer discountType;
|
|
|
|
+
|
|
|
|
+ //优惠值
|
|
|
|
+ @ApiModelProperty("优惠值")
|
|
|
|
+ private BigDecimal discountValue;
|
|
|
|
+
|
|
|
|
+ //门槛金额
|
|
|
|
+ @ApiModelProperty("门槛金额")
|
|
|
|
+ private BigDecimal thresholdAmount;
|
|
|
|
+
|
|
|
|
+ //获取方式:1:手动领取 2,自动发放
|
|
|
|
+ @ApiModelProperty("获取方式:1:手动领取 2,自动发放")
|
|
|
|
+ private Integer obtainWay;
|
|
|
|
+
|
|
|
|
+ //优惠券有效期天数,0
|
|
|
|
+ @ApiModelProperty("优惠券有效期天数")
|
|
|
|
+ private Integer termDays;
|
|
|
|
+
|
|
|
|
+ //优惠券配置状态,0:未使用,1:进行中
|
|
|
|
+ @ApiModelProperty("优惠券配置状态,0:未使用,1:进行中")
|
|
|
|
+ private Integer status;
|
|
|
|
+
|
|
|
|
+ //已使用数量
|
|
|
|
+ @ApiModelProperty("已使用数量")
|
|
|
|
+ private Integer usedNum;
|
|
|
|
+
|
|
|
|
+ //每个人限领的数量
|
|
|
|
+ @ApiModelProperty("每个人限领的数量")
|
|
|
|
+ private Integer userLimit;
|
|
|
|
+
|
|
|
|
+ //拓展参数字段,保留字段
|
|
|
|
+ @ApiModelProperty("保留字段")
|
|
|
|
+ private String extParam;
|
|
|
|
+
|
|
|
|
+ //系统创建时间
|
|
|
|
+ @ApiModelProperty("创建时间")
|
|
|
|
+ private Date createTime;
|
|
|
|
+
|
|
|
|
+ //系统修改时间
|
|
|
|
+ @ApiModelProperty("修改时间")
|
|
|
|
+ private Date updateTime;
|
|
|
|
+
|
|
|
|
+ //是否删除0否1是
|
|
|
|
+ @ApiModelProperty("是否删除0否1是")
|
|
|
|
+ @TableLogic
|
|
|
|
+ private Integer isDelete;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public String getId() {
|
|
|
|
+ return id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setId(String id) {
|
|
|
|
+ this.id = id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getName() {
|
|
|
|
+ return name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setName(String name) {
|
|
|
|
+ this.name = name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getType() {
|
|
|
|
+ return type;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setType(Integer type) {
|
|
|
|
+ this.type = type;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getDiscountType() {
|
|
|
|
+ return discountType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setDiscountType(Integer discountType) {
|
|
|
|
+ this.discountType = discountType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public BigDecimal getDiscountValue() {
|
|
|
|
+ return discountValue;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setDiscountValue(BigDecimal discountValue) {
|
|
|
|
+ this.discountValue = discountValue;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public BigDecimal getThresholdAmount() {
|
|
|
|
+ return thresholdAmount;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setThresholdAmount(BigDecimal thresholdAmount) {
|
|
|
|
+ this.thresholdAmount = thresholdAmount;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getObtainWay() {
|
|
|
|
+ return obtainWay;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setObtainWay(Integer obtainWay) {
|
|
|
|
+ this.obtainWay = obtainWay;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getTermDays() {
|
|
|
|
+ return termDays;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setTermDays(Integer termDays) {
|
|
|
|
+ this.termDays = termDays;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getStatus() {
|
|
|
|
+ return status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStatus(Integer status) {
|
|
|
|
+ this.status = status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getUsedNum() {
|
|
|
|
+ return usedNum;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUsedNum(Integer usedNum) {
|
|
|
|
+ this.usedNum = usedNum;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getUserLimit() {
|
|
|
|
+ return userLimit;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUserLimit(Integer userLimit) {
|
|
|
|
+ this.userLimit = userLimit;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getExtParam() {
|
|
|
|
+ return extParam;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setExtParam(String extParam) {
|
|
|
|
+ this.extParam = extParam;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Date getCreateTime() {
|
|
|
|
+ return createTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCreateTime(Date createTime) {
|
|
|
|
+ this.createTime = createTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Date getUpdateTime() {
|
|
|
|
+ return updateTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUpdateTime(Date updateTime) {
|
|
|
|
+ this.updateTime = updateTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getIsDelete() {
|
|
|
|
+ return isDelete;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setIsDelete(Integer isDelete) {
|
|
|
|
+ this.isDelete = isDelete;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取主键值
|
|
|
|
+ *
|
|
|
|
+ * @return 主键值
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public Serializable pkVal() {
|
|
|
|
+ return this.id;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|