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

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


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


    /**
     * 订单ID
     */
    @TableField("orderid")
    private String orderid;
    /**
     * 集合支付订单
     */
    @TableField("parent_id")
    private String parentId;
    /**
     * 会员ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 商户号
     */
    @TableField("merchant_no")
    private String merchantNo;
    /**
     * 卖方订单ID,当购买寄售时有值
     */
    @TableField("parent_order_id")
    private Integer parentOrderId;
    /**
     * 卖家id
     */
    @TableField("seller_id")
    private Integer sellerId;
    /**
     * 订单金额
     */
    @TableField("amount")
    private Double amount;
    /**
     * itemId
     */
    @TableField("item_id")
    private Long itemId;
    /**
     * userBoxId
     */
    @TableField("user_box_id")
    private Integer userBoxId;
    /**
     * 类型:0=未知,1=充值,2=市场购买,3=首发购买 4:市场盲盒
     */
    @TableField("type")
    private Integer type;
    /**
     * 支付金额
     */
    @TableField("payamount")
    private Double payamount;
    /**
     * 支付类型
     */
    @TableField("paytype")
    private String paytype;
    /**
     * 支付时间
     */
    @TableField("paytime")
    private Integer paytime;
    /**
     * IP地址
     */
    @TableField("ip")
    private String ip;
    /**
     * UserAgent
     */
    @TableField("useragent")
    private String useragent;
    /**
     * 备注
     */
    @TableField("memo")
    private String memo;
    /**
     * 添加时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 过期时间
     */
    @TableField("expiredtime")
    private Integer expiredtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 支付信息
     */
    @TableField("payinfo")
    private String payinfo;
    /**
     * 交易订单号
     */
    @TableField("trade_no")
    private String tradeNo;
    /**
     * 用户账单上的交易订单号
     */
    @TableField("out_trade_no")
    private String outTradeNo;
    /**
     * 退款订单号
     */
    @TableField("refund_tradeno")
    private String refundTradeno;
    /**
     * 状态:created=支付中,paid=已付款,expired=已过期,closed=关闭支付,refund=已退款
     *
     * @see k.e.book.common.enums.OrderStatus
     */
    @TableField("status")
    private String status;
    /**
     * 分帐 0:不分帐 1:分帐
     */
    @TableField("fund_process_type")
    private Boolean fundProcessType;
    /**
     * 支付通道:sd=杉德,yibao=易宝
     */
    @TableField("pay_channel")
    private String payChannel;
    /**
     * 藏品id
     */
    @TableField("product_id")
    private Integer productId;
    /**
     * 是否售出 1:已售出
     */
    @TableField("is_sold")
    private Integer isSold;
    /**
     * 白名单时间下单 0:正常 1:白名单下单
     */
    @TableField("is_white")
    private Boolean isWhite;
    /**
     * 上链 1:已上0:未
     */
    @TableField("is_txhash")
    private Integer isTxhash;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcRechargeOrderVO toVO(CcRechargeOrderDO ccRechargeOrderDO) {
        if(ccRechargeOrderDO == null){
            return null;
        }
        CcRechargeOrderVO ccRechargeOrderVO = new CcRechargeOrderVO();
        BeanUtils.copyProperties(ccRechargeOrderDO, ccRechargeOrderVO);
        return ccRechargeOrderVO;
    }

    public static CcRechargeOrderDO toDO(CcRechargeOrderAddDTO ccRechargeOrderAddDTO) {
        if (ccRechargeOrderAddDTO == null) {
            return null;
        }
        CcRechargeOrderDO ccRechargeOrderDO = new CcRechargeOrderDO();
        BeanUtils.copyProperties(ccRechargeOrderAddDTO, ccRechargeOrderDO);
        return ccRechargeOrderDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy