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

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


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


    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 奖项ID
     */
    @TableField("luck_id")
    private Integer luckId;
    /**
     * 类型:1=藏品,2=实物,3=积分,4=谢谢参与
     */
    @TableField("type")
    private Integer type;
    /**
     * 数量
     */
    @TableField("num")
    private Integer num;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 图标
     */
    @TableField("image")
    private String image;
    /**
     * 描述
     */
    @TableField("desc")
    private String desc;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;
    /**
     * 状态:0=未中奖,1=未发奖,2=已发奖
     */
    @TableField("status")
    private Integer status;
    /**
     * 抵扣券ID
     */
    @TableField("coupon_id")
    private Integer couponId;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;

    public static CcIntegralLuckLogVO toVO(CcIntegralLuckLogDO ccIntegralLuckLogDO) {
        if(ccIntegralLuckLogDO == null){
            return null;
        }
        CcIntegralLuckLogVO ccIntegralLuckLogVO = new CcIntegralLuckLogVO();
        BeanUtils.copyProperties(ccIntegralLuckLogDO, ccIntegralLuckLogVO);
        return ccIntegralLuckLogVO;
    }

    public static CcIntegralLuckLogDO toDO(CcIntegralLuckLogAddDTO ccIntegralLuckLogAddDTO) {
        if (ccIntegralLuckLogAddDTO == null) {
            return null;
        }
        CcIntegralLuckLogDO ccIntegralLuckLogDO = new CcIntegralLuckLogDO();
        BeanUtils.copyProperties(ccIntegralLuckLogAddDTO, ccIntegralLuckLogDO);
        return ccIntegralLuckLogDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy