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

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


    @TableField(exist = false)
    private CcOrderAttributeDOItemDetail itemDetailVO;


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


    /**
     * 订单编号
     */
    @TableField("orderid")
    private String orderid;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 卖方订单ID,当购买寄售时有值
     */
    @TableField("parent_order_id")
    private Integer parentOrderId;
    /**
     * 卖家id
     */
    @TableField("seller_id")
    private Integer sellerId;
    /**
     * 单价
     */
    @TableField("price")
    private Double price;
    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 总价
     */
    @TableField("total_fee")
    private Double totalFee;
    /**
     * itemId
     */
    @TableField("item_id")
    private Long itemId;
    /**
     * userBoxId
     */
    @TableField("user_box_id")
    private Integer userBoxId;
    /**
     * 订单详情 product:首购 market:转卖藏品 box盲盒 box_market:转卖盲盒
     */
    @TableField("item_detail")
    private String itemDetail;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 是否售出 1:是
     */
    @TableField("is_sold")
    private Integer isSold;
    /**
     * 藏品id
     */
    @TableField("product_id")
    private Integer productId;
    /**
     * 白名单时间下单 0:正常 1:白名单下单
     */
    @TableField("is_white")
    private Boolean isWhite;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcOrderAttributeVO toVO(CcOrderAttributeDO ccOrderAttributeDO) {
        if (ccOrderAttributeDO == null) {
            return null;
        }
        CcOrderAttributeVO ccOrderAttributeVO = new CcOrderAttributeVO();
        BeanUtils.copyProperties(ccOrderAttributeDO, ccOrderAttributeVO);
        return ccOrderAttributeVO;
    }

    public static CcOrderAttributeDO toDO(CcOrderAttributeAddDTO ccOrderAttributeAddDTO) {
        if (ccOrderAttributeAddDTO == null) {
            return null;
        }
        CcOrderAttributeDO ccOrderAttributeDO = new CcOrderAttributeDO();
        BeanUtils.copyProperties(ccOrderAttributeAddDTO, ccOrderAttributeDO);
        return ccOrderAttributeDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy