k.e.book.ddh.entity.CcOrderProfitSharingDO 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_profit_sharing")
@ApiModel(value="CcOrderProfitSharingDO", description="CcOrderProfitSharing")
public class CcOrderProfitSharingDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 用户id
*/
@TableField("user_id")
private Long userId;
/**
* 类型:1=藏品市场,2=盲盒市场,3=首发购买
*/
@TableField("type")
private Integer type;
/**
* 支付订单号
*/
@TableField("payorderid")
private String payorderid;
/**
* 支付类型:200=杉德,2001=易宝
*/
@TableField("paytype")
private String paytype;
/**
* 商户号
*/
@TableField("merchant_no")
private String merchantNo;
/**
* 分账订单号
*/
@TableField("orderid")
private String orderid;
/**
* 交易订单号
*/
@TableField("trade_no")
private String tradeNo;
/**
* 买家编号
*/
@TableField("buyer_id")
private Long buyerId;
/**
* 卖家编号
*/
@TableField("seller_id")
private Long sellerId;
/**
* 藏品编号
*/
@TableField("product_id")
private Integer productId;
/**
* 盲盒编号
*/
@TableField("box_id")
private Integer boxId;
/**
* 市场编号
*/
@TableField("market_id")
private Long marketId;
/**
* 订单总金额
*/
@TableField("total_amount")
private Double totalAmount;
/**
* 到账金额
*/
@TableField("paid_amount")
private Double paidAmount;
/**
* 平台服务费
*/
@TableField("service_fee")
private Long serviceFee;
/**
* 版权分成费
*/
@TableField("copyright_fee")
private Long copyrightFee;
/**
* 支付通道费
*/
@TableField("payment_fee")
private Long paymentFee;
/**
* 收款类型:0=未知,1=平台余额,2=第三方钱包
*/
@TableField("payee_type")
private Integer payeeType;
/**
* 支付手续费(自动计算 0.0075)
*/
@TableField("pay_fee")
private Double payFee;
/**
* 状态:0=未知,1=申请中,2=处理中,3=已处理,4=异常
*
* @see k.e.book.common.enums.OrderProfitSharingStatus
*/
@TableField("status")
private Integer status;
/**
* 备注
*/
@TableField("memo")
private String memo;
/**
* 分帐数据
*/
@TableField("content")
private String content;
/**
* 创建时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 删除时间
*/
@TableField("deletetime")
private Integer deletetime;
/**
* createdAt
*/
@TableField("created_at")
private Date createdAt;
/**
* updatedAt
*/
@TableField("updated_at")
private Date updatedAt;
/**
* deletedAt
*/
@TableField("deleted_at")
private Date deletedAt;
public static CcOrderProfitSharingVO toVO(CcOrderProfitSharingDO ccOrderProfitSharingDO) {
if(ccOrderProfitSharingDO == null){
return null;
}
CcOrderProfitSharingVO ccOrderProfitSharingVO = new CcOrderProfitSharingVO();
BeanUtils.copyProperties(ccOrderProfitSharingDO, ccOrderProfitSharingVO);
return ccOrderProfitSharingVO;
}
public static CcOrderProfitSharingDO toDO(CcOrderProfitSharingAddDTO ccOrderProfitSharingAddDTO) {
if (ccOrderProfitSharingAddDTO == null) {
return null;
}
CcOrderProfitSharingDO ccOrderProfitSharingDO = new CcOrderProfitSharingDO();
BeanUtils.copyProperties(ccOrderProfitSharingAddDTO, ccOrderProfitSharingDO);
return ccOrderProfitSharingDO;
}
}