using Oms.Domain.Shared; using SqlSugar; namespace Oms.Domain.AgentsAggregate.Entities; /// 代理返佣明细(首版无余额入账)。 [SugarTable("t_agent_commission_detail")] public class AgentCommissionDetail : OmsAuditedAggregateRoot { public int AgentId { get; set; } public int OrderId { get; set; } public int CustomerId { get; set; } public int? SalesProductId { get; set; } [SugarColumn(Length = 32)] public string BaseType { get; set; } = string.Empty; public decimal BaseAmount { get; set; } public decimal CommissionRate { get; set; } public decimal CommissionAmount { get; set; } /// estimated / pending / paid / void。 [SugarColumn(Length = 16)] public string Status { get; set; } = "estimated"; [SugarColumn(Length = 32)] public string TriggerOrderStatus { get; set; } = string.Empty; public DateTime? PaidTime { get; set; } [SugarColumn(Length = 512, IsNullable = true)] public string? Remark { get; set; } }