admin/src/Oms.Domain/AgentsAggregate/Entities/AgentCommissionDetail.cs
zzh 07f589d57b
All checks were successful
Build and Deploy / deploy (push) Successful in 1m12s
feat: 代理返佣下单预计与 Outbox 异步落库
下单写 estimated、终态锁定 pending、取消/退款 void;打款仅认 pending,写入走集成事件异步消费。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 11:06:51 +08:00

39 lines
1.0 KiB
C#

using Oms.Domain.Shared;
using SqlSugar;
namespace Oms.Domain.AgentsAggregate.Entities;
/// <summary>代理返佣明细(首版无余额入账)。</summary>
[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; }
/// <summary>estimated / pending / paid / void。</summary>
[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; }
}