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

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


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


    /**
     * 类型
     */
    @TableField("type")
    private Integer type;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 真实姓名
     */
    @TableField("name")
    private String name;
    /**
     * 手机号码
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 藏品ID
     */
    @TableField("product_id")
    private Integer productId;
    /**
     * 项目ID
     */
    @TableField("item_id")
    private Integer itemId;
    /**
     * 盲盒ID
     */
    @TableField("box_id")
    private Integer boxId;
    /**
     * 盲盒数量
     */
    @TableField("boxqty")
    private Integer boxqty;
    /**
     * 持仓时间
     */
    @TableField("ownertime")
    private Integer ownertime;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 发送状态:0=未定义,1=未发放,2=已发放
     */
    @TableField("sendstatus")
    private Integer sendstatus;

    public static CcSnapshotOwnerVO toVO(CcSnapshotOwnerDO ccSnapshotOwnerDO) {
        if(ccSnapshotOwnerDO == null){
            return null;
        }
        CcSnapshotOwnerVO ccSnapshotOwnerVO = new CcSnapshotOwnerVO();
        BeanUtils.copyProperties(ccSnapshotOwnerDO, ccSnapshotOwnerVO);
        return ccSnapshotOwnerVO;
    }

    public static CcSnapshotOwnerDO toDO(CcSnapshotOwnerAddDTO ccSnapshotOwnerAddDTO) {
        if (ccSnapshotOwnerAddDTO == null) {
            return null;
        }
        CcSnapshotOwnerDO ccSnapshotOwnerDO = new CcSnapshotOwnerDO();
        BeanUtils.copyProperties(ccSnapshotOwnerAddDTO, ccSnapshotOwnerDO);
        return ccSnapshotOwnerDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy