using dodohold.core;
using System.Text.Json.Serialization;

namespace molilian.core
{

    [Table("pdd_estimate_revenue")]
    public class PddEstimateRevenueDTO
    {
        [Key]
        public int id { get; set; }
        public int accountId { get; set; } = 0;

        public string accountName { get; set; } = string.Empty;

        /// <summary>
        /// 订单完成日期
        /// </summary>
        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime report_date { get; set; } = DateTime.MinValue;
        public DateTime calcDate { get; set; } = DateTime.MinValue;

        public string pid { get; set; } = string.Empty;
        public string pidName { get; set; } = string.Empty;


        //支付笔数
        public int orderNum { get; set; } = 0;
        /// <summary>
        /// 支付金额（分）
        /// </summary>
        public int orderAmount { get; set; } = 0;

        /// <summary>
        /// 支付订单的预估佣金收入（分）
        /// </summary>
        public int feeAmount { get; set; } = 0;

        /// <summary>
        /// 笔单价（分）
        /// </summary>
        public decimal avgPrice { get; set; } = 0;

        /// <summary>
        /// 跨店佣金收入（分）
        /// </summary>
        public int mallRelFeeAmount { get; set; } = 0;

        /// <summary>
        /// 应该是锁定金额？
        /// </summary>
        public int lockFeeAmount { get; set; } = 0;
        public DateTime create_time { get; set; } = DateTime.MinValue;
        public DateTime last_time { get; set; } = DateTime.MinValue;

    }


}
