package com.cyksj.model.entity;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/*
 *项目名: netflix
 *文件名: UserDistributeBusinessOrderDonRecord
 *创建者: JavaZou
 *创建时间:2023/3/23 14:47
 */
@Getter
@Setter
public class UserDistributeBusinessOrderDonRecord extends BaseEntity{
	/**
	 * 商务id
	 */
	private Long businessId;

	/**
	 * 分销人id
	 */
	private Long sharedId;

	/**
	 * 产生分销订单用户id
	 */
	private Long userId;

	/**
	 * 首单时 座位id
	 */
	private Long preRelationId;

	private Long orderId;

	/**
	 * 1首单,2续费
	 */
	private Integer orderType;

	/**
	 * 分销比例
	 */
	private Integer rate;

	/**
	 * 提成金额
	 */
	private BigDecimal takeMoney;

	/**
	 * 提成状态
	 */
	private Status status;

	/**
	 * 订单创建时间
	 */
	private Date orderCreatedTime;

	@Getter
	public enum Status{
		success("成功"),
		refund("失败"),
		;
		String desc;

		Status(String desc) {
			this.desc = desc;
		}
	}
}
