using Edu.Common.Enum.User;
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;

namespace Edu.Model.Entity.Sell
{

    /// <summary>
    /// 订单返佣记录表
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_Order_ReturnComission
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 返佣类型   1按课耗反    2付款返佣
        /// </summary>
        public int CommissionReType { get; set; }

        /// <summary>
        /// 学员来源
        /// </summary>
        public StuCreateTypeEnum OrderSourceType { get; set; }

        /// <summary>
        /// 关联来源编号
        /// </summary>
        public int OrderSourceId { get; set; }

        /// <summary>
        /// 返佣条件值
        /// </summary>
        public decimal CommissionReValue { get; set; }

        /// <summary>
        /// -1，不返佣，0,待返佣，1，已返佣到账户，2佣金已提现
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 返佣金额
        /// </summary>
        public decimal CommissionMoeny { get; set; }

        /// <summary>
        /// 返佣备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 返佣提现单号
        /// </summary>
        public int UnionCashOutId { get; set; }

        /// <summary>
        /// 学员编号
        /// </summary>
        public int StuId { get; set; }

        /// <summary>
        /// 提成类型1、返佣；2、幸福存折
        /// </summary>
        public int CommissionType { get; set; }

        /// <summary>
        /// 归属批次
        /// </summary>
        public int BatchId { get; set; }

        public int SchoolId { get; set; }

        public int GroupId { get; set; }
    }
}
