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

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


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


    /**
     * 上级id
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * userId
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 卖家id
     */
    @TableField("seller_id")
    private Integer sellerId;
    /**
     * 用户拥有盲盒id
     */
    @TableField("user_box_id")
    private Integer userBoxId;
    /**
     * 盲盒编号
     */
    @TableField("box_id")
    private Integer boxId;
    /**
     * 项目编号
     */
    @TableField("item_id")
    private Integer itemId;
    /**
     * amount
     */
    @TableField("amount")
    private Long amount;
    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * createtime
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 状态:0=未发放,1=已发放 2:挂售中 3:已售出 4:锁定中
     */
    @TableField("status")
    private Integer status;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcUserBoxDetailVO toVO(CcUserBoxDetailDO ccUserBoxDetailDO) {
        if(ccUserBoxDetailDO == null){
            return null;
        }
        CcUserBoxDetailVO ccUserBoxDetailVO = new CcUserBoxDetailVO();
        BeanUtils.copyProperties(ccUserBoxDetailDO, ccUserBoxDetailVO);
        return ccUserBoxDetailVO;
    }

    public static CcUserBoxDetailDO toDO(CcUserBoxDetailAddDTO ccUserBoxDetailAddDTO) {
        if (ccUserBoxDetailAddDTO == null) {
            return null;
        }
        CcUserBoxDetailDO ccUserBoxDetailDO = new CcUserBoxDetailDO();
        BeanUtils.copyProperties(ccUserBoxDetailAddDTO, ccUserBoxDetailDO);
        return ccUserBoxDetailDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy