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

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


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


    /**
     * 购买盲盒编号
     */
    @TableField("user_box_id")
    private Integer userBoxId;
    /**
     * 盲盒编号
     */
    @TableField("box_id")
    private Integer boxId;
    /**
     * 用户编号
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 订单ID
     */
    @TableField("orderid")
    private String orderid;
    /**
     * 盲盒明细id
     */
    @TableField("user_box_detail_id")
    private Integer userBoxDetailId;
    /**
     * itemId
     */
    @TableField("item_id")
    private Integer itemId;
    /**
     * 金额数量
     */
    @TableField("amount")
    private Long amount;
    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 删除时间
     */
    @TableField("deletetime")
    private Integer deletetime;
    /**
     * 平台服务费,单位:分
     */
    @TableField("service_fee")
    private Integer serviceFee;
    /**
     * 创作者版权分成,单位:分
     */
    @TableField("copyright_fee")
    private Integer copyrightFee;
    /**
     * 支付通道费,单位:分
     */
    @TableField("payment_fee")
    private Integer paymentFee;
    /**
     * 提现服务费,单位:分
     */
    @TableField("withdraw_fee")
    private Integer withdrawFee;
    /**
     * 到账金额,单位:分
     */
    @TableField("paid_amount")
    private Integer paidAmount;
    /**
     * 到账状态:0=未知,1=申请中,2=打款中,3=成功,4=拒绝
     */
    @TableField("paid_status")
    private Boolean paidStatus;
    /**
     * 结算账户信息
     */
    @TableField("settle_account")
    private String settleAccount;
    /**
     * 状态:0=隐藏,1=挂售中,2=已卖出,3=锁定中,4=取消挂售,5=系统取消,6=后台取消
     */
    @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 CcBoxMarketVO toVO(CcBoxMarketDO ccBoxMarketDO) {
        if(ccBoxMarketDO == null){
            return null;
        }
        CcBoxMarketVO ccBoxMarketVO = new CcBoxMarketVO();
        BeanUtils.copyProperties(ccBoxMarketDO, ccBoxMarketVO);
        return ccBoxMarketVO;
    }

    public static CcBoxMarketDO toDO(CcBoxMarketAddDTO ccBoxMarketAddDTO) {
        if (ccBoxMarketAddDTO == null) {
            return null;
        }
        CcBoxMarketDO ccBoxMarketDO = new CcBoxMarketDO();
        BeanUtils.copyProperties(ccBoxMarketAddDTO, ccBoxMarketDO);
        return ccBoxMarketDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy