All checks were successful
Build and Deploy / deploy (push) Successful in 1m18s
一期落地定义、实例、任务、事件及模拟提交通路,业务接入后续再挂 Operation Adapter。 Co-authored-by: Cursor <cursoragent@cursor.com>
75 lines
2.5 KiB
C#
75 lines
2.5 KiB
C#
using Oms.Domain.ApprovalAggregate.Enums;
|
|
using Oms.Domain.Shared;
|
|
using SqlSugar;
|
|
|
|
namespace Oms.Domain.ApprovalAggregate.Entities;
|
|
|
|
/// <summary>
|
|
/// 审批实例。
|
|
/// </summary>
|
|
[SugarTable("t_approval_instance")]
|
|
public class ApprovalInstance : OmsAuditedAggregateRoot
|
|
{
|
|
/// <summary>实例单号。</summary>
|
|
[SugarColumn(Length = 32)]
|
|
public string InstanceNo { get; set; } = string.Empty;
|
|
|
|
/// <summary>操作编码。</summary>
|
|
[SugarColumn(Length = 128)]
|
|
public string OperationCode { get; set; } = string.Empty;
|
|
|
|
/// <summary>业务幂等键。</summary>
|
|
[SugarColumn(Length = 128)]
|
|
public string BizKey { get; set; } = string.Empty;
|
|
|
|
/// <summary>摘要标题。</summary>
|
|
[SugarColumn(Length = 256)]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
/// <summary>实例状态。</summary>
|
|
public ApprovalInstanceStatus Status { get; set; } = ApprovalInstanceStatus.Pending;
|
|
|
|
/// <summary>申请人 mapId。</summary>
|
|
public int ApplicantUserId { get; set; }
|
|
|
|
/// <summary>申请人 RBAC Guid。</summary>
|
|
[SugarColumn(Length = 36)]
|
|
public string ApplicantUserGuid { get; set; } = string.Empty;
|
|
|
|
/// <summary>申请人显示名。</summary>
|
|
[SugarColumn(Length = 64, IsNullable = true)]
|
|
public string? ApplicantUserName { get; set; }
|
|
|
|
/// <summary>冻结业务载荷。</summary>
|
|
[SugarColumn(ColumnDataType = "mediumtext", IsNullable = true)]
|
|
public string? PayloadJson { get; set; }
|
|
|
|
/// <summary>载荷哈希。</summary>
|
|
[SugarColumn(Length = 64, IsNullable = true)]
|
|
public string? PayloadHash { get; set; }
|
|
|
|
/// <summary>展示摘要 JSON。</summary>
|
|
[SugarColumn(Length = 2000, IsNullable = true)]
|
|
public string? SummaryJson { get; set; }
|
|
|
|
/// <summary>提交时定义快照。</summary>
|
|
[SugarColumn(ColumnDataType = "mediumtext", IsNullable = true)]
|
|
public string? DefinitionSnapshot { get; set; }
|
|
|
|
/// <summary>当前任务 Id。</summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public int? CurrentTaskId { get; set; }
|
|
|
|
/// <summary>终审完成时间。</summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? CompletedTime { get; set; }
|
|
|
|
/// <summary>业务执行完成时间。</summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? ExecutedTime { get; set; }
|
|
|
|
/// <summary>执行结果/失败信息。</summary>
|
|
[SugarColumn(Length = 1000, IsNullable = true)]
|
|
public string? ExecuteMessage { get; set; }
|
|
}
|