| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- namespace Admin.NET.Plugin.ApprovalFlow;
- /// <summary>
- /// 审批流程实例表
- /// </summary>
- [SugarTable(null, "审批流程实例表")]
- [SugarIndex("idx_flowinstance_biztype_bizid", nameof(BizType), OrderByType.Asc, nameof(BizId), OrderByType.Asc)]
- [SugarIndex("idx_flowinstance_initiator", nameof(InitiatorId), OrderByType.Asc)]
- public class ApprovalFlowInstance : EntityBaseOrg
- {
- /// <summary>
- /// 关联流程定义 Id
- /// </summary>
- [SugarColumn(ColumnDescription = "流程定义Id")]
- public long FlowId { get; set; }
- /// <summary>
- /// 发起时的流程版本
- /// </summary>
- [SugarColumn(ColumnDescription = "流程版本")]
- public int FlowVersion { get; set; }
- /// <summary>
- /// 业务类型编码
- /// </summary>
- [SugarColumn(ColumnDescription = "业务类型编码", Length = 64)]
- [MaxLength(64)]
- public string BizType { get; set; } = "";
- /// <summary>
- /// 关联业务单据 Id
- /// </summary>
- [SugarColumn(ColumnDescription = "业务单据Id")]
- public long BizId { get; set; }
- /// <summary>
- /// 业务单号(冗余)
- /// </summary>
- [SugarColumn(ColumnDescription = "业务单号", Length = 128, IsNullable = true)]
- [MaxLength(128)]
- public string? BizNo { get; set; }
- /// <summary>
- /// 流程标题
- /// </summary>
- [SugarColumn(ColumnDescription = "流程标题", Length = 256)]
- [MaxLength(256)]
- public string Title { get; set; } = "";
- /// <summary>
- /// 发起人 Id
- /// </summary>
- [SugarColumn(ColumnDescription = "发起人Id")]
- public long InitiatorId { get; set; }
- /// <summary>
- /// 发起人姓名(冗余)
- /// </summary>
- [SugarColumn(ColumnDescription = "发起人姓名", Length = 64, IsNullable = true)]
- [MaxLength(64)]
- public string? InitiatorName { get; set; }
- /// <summary>
- /// 流程状态
- /// </summary>
- [SugarColumn(ColumnDescription = "流程状态")]
- public FlowInstanceStatusEnum Status { get; set; }
- /// <summary>
- /// 当前所在节点 Id
- /// </summary>
- [SugarColumn(ColumnDescription = "当前节点Id", Length = 64, IsNullable = true)]
- [MaxLength(64)]
- public string? CurrentNodeId { get; set; }
- /// <summary>
- /// 发起时的完整 FlowJson 快照(含节点属性)
- /// </summary>
- [SugarColumn(ColumnDescription = "FlowJson快照", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
- public string? FlowJsonSnapshot { get; set; }
- /// <summary>
- /// 发起时间
- /// </summary>
- [SugarColumn(ColumnDescription = "发起时间")]
- public DateTime StartTime { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- [SugarColumn(ColumnDescription = "结束时间", IsNullable = true)]
- public DateTime? EndTime { get; set; }
- }
|