All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcBoxDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_box")
@ApiModel(value="CcBoxDO", description="CcBox")
public class CcBoxDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 标题
     */
    @TableField("subject")
    private String subject;
    /**
     * 首页封面图
     */
    @TableField("himage")
    private String himage;
    /**
     * 封面
     */
    @TableField("images")
    private String images;
    /**
     * 开盒背景图
     */
    @TableField("bgimg")
    private String bgimg;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 已售数量
     */
    @TableField("soldQty")
    private Integer soldQty;
    /**
     * 金额数量
     */
    @TableField("amount")
    private Integer amount;
    /**
     * 购买限制
     */
    @TableField("purchaselimit")
    private Integer purchaselimit;
    /**
     * 白名单开关:0=关闭,1=开启
     */
    @TableField("whitelist")
    private Integer whitelist;
    /**
     * 购买须知
     */
    @TableField("purchasetips")
    private String purchasetips;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * deletetime
     */
    @TableField("deletetime")
    private Integer deletetime;
    /**
     * 开始时间
     */
    @TableField("starttime")
    private Integer starttime;
    /**
     * 开盒时间
     */
    @TableField("opentime")
    private Integer opentime;
    /**
     * 开盒结束时间
     */
    @TableField("openendtime")
    private Integer openendtime;
    /**
     * 转售时间
     */
    @TableField("selltime")
    private Integer selltime;
    /**
     * tag
     */
    @TableField("tag")
    private String tag;
    /**
     * 标志
     */
    @TableField("flag")
    private String flag;
    /**
     * h5购买链接
     */
    @TableField("h5link")
    private String h5link;
    /**
     * 状态:0=隐藏,1=上架,2=下架,3=售完
     */
    @TableField("status")
    private String status;
    /**
     * 市场购买获得积分费率
     */
    @TableField("getscore_fee")
    private Integer getscoreFee;
    /**
     * 市场卖出获得积分费率
     */
    @TableField("getscore_fee_sell")
    private Integer getscoreFeeSell;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcBoxVO toVO(CcBoxDO ccBoxDO) {
        if(ccBoxDO == null){
            return null;
        }
        CcBoxVO ccBoxVO = new CcBoxVO();
        BeanUtils.copyProperties(ccBoxDO, ccBoxVO);
        return ccBoxVO;
    }

    public static CcBoxDO toDO(CcBoxAddDTO ccBoxAddDTO) {
        if (ccBoxAddDTO == null) {
            return null;
        }
        CcBoxDO ccBoxDO = new CcBoxDO();
        BeanUtils.copyProperties(ccBoxAddDTO, ccBoxDO);
        return ccBoxDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy