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

k.e.book.ddh.entity.CcDrawLogDO 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_draw_log")
@ApiModel(value="CcDrawLogDO", description="CcDrawLog")
public class CcDrawLogDO extends Model  {
    private static final long serialVersionUID = 1L;


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


    /**
     * 配置ID
     */
    @TableField("draw_config_id")
    private Integer drawConfigId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 类型:1=藏品,2=盲盒
     */
    @TableField("type")
    private Integer type;
    /**
     * 关联ID
     */
    @TableField("relation_id")
    private Integer relationId;
    /**
     * 使用:0=未知,1=未使用,2=已使用
     */
    @TableField("is_use")
    private Integer isUse;
    /**
     * 状态:0=未开签,1=未中签,2=已中签
     */
    @TableField("status")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;

    public static CcDrawLogVO toVO(CcDrawLogDO ccDrawLogDO) {
        if(ccDrawLogDO == null){
            return null;
        }
        CcDrawLogVO ccDrawLogVO = new CcDrawLogVO();
        BeanUtils.copyProperties(ccDrawLogDO, ccDrawLogVO);
        return ccDrawLogVO;
    }

    public static CcDrawLogDO toDO(CcDrawLogAddDTO ccDrawLogAddDTO) {
        if (ccDrawLogAddDTO == null) {
            return null;
        }
        CcDrawLogDO ccDrawLogDO = new CcDrawLogDO();
        BeanUtils.copyProperties(ccDrawLogAddDTO, ccDrawLogDO);
        return ccDrawLogDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy