1
phpcjl
2024-12-16 0c7c5dd4a5b991af92dcd8788355fc2987189ab2
ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/domain/CouponInfo.java
@@ -1,6 +1,7 @@
package com.ruoyi.other.api.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -8,6 +9,7 @@
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
@@ -37,6 +39,7 @@
    @ApiModelProperty(value = "添加时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "优惠券名称")
@@ -81,11 +84,13 @@
    @ApiModelProperty(value = "有效期开始时间")
    @TableField("period_start_time")
    private LocalDateTime periodStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate periodStartTime;
    @ApiModelProperty(value = "有效期结束时间")
    @TableField("period_end_time")
    private LocalDateTime periodEndTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate periodEndTime;
    @ApiModelProperty(value = "领取后x天有效")
    @TableField("period_days")
@@ -93,10 +98,12 @@
    @ApiModelProperty(value = "开始发放时间")
    @TableField("send_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendStartTime;
    @ApiModelProperty(value = "结束发放时间")
    @TableField("send_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendEndTime;
    @ApiModelProperty(value = "1免费发放2积分兑换")
@@ -119,5 +126,14 @@
    @TableField("shelf_status")
    private Integer shelfStatus;
    @ApiModelProperty(value = "已发放数量")
    @TableField(exist = false)
    private Long sendNumNow;
    @ApiModelProperty(value = "指定会员等级,逗号隔开")
    private String vipIds;
    public String getIdStr() {
        return String.valueOf(id);
    }
}