namespace Admin.NET.Plugin.ApprovalFlow; /// /// 流程实例已完成节点表(P1-5 并行网关支持,同时也为 P3-15 节点级统计提供数据源) /// 记录某个流程实例中每个节点的完成状态,含 userTask / exclusiveGateway / parallelGateway 等所有节点类型。 /// [SugarTable(null, "流程实例已完成节点表")] [SugarIndex("uq_flowcompleted_inst_node", nameof(InstanceId), OrderByType.Asc, nameof(NodeId), OrderByType.Asc, true)] public class ApprovalFlowCompletedNode : EntityBase { /// /// 流程实例 Id /// [SugarColumn(ColumnDescription = "流程实例Id")] public long InstanceId { get; set; } /// /// 节点 Id(FlowJson 中的 node.id) /// [SugarColumn(ColumnDescription = "节点Id", Length = 64)] [MaxLength(64)] public string NodeId { get; set; } = ""; /// /// 节点名称(冗余,便于展示与统计) /// [SugarColumn(ColumnDescription = "节点名称", Length = 128, IsNullable = true)] [MaxLength(128)] public string? NodeName { get; set; } /// /// 节点类型(如 bpmn:userTask / bpmn:exclusiveGateway / bpmn:parallelGateway) /// [SugarColumn(ColumnDescription = "节点类型", Length = 64, IsNullable = true)] [MaxLength(64)] public string? NodeType { get; set; } /// /// 完成时间 /// [SugarColumn(ColumnDescription = "完成时间")] public DateTime CompletedTime { get; set; } = DateTime.Now; }