using SqlSugar; namespace OpenAuth.Repository.Domain.workflow; /// /// 流程工作项表(zy_flow_workitem) /// [SugarTable("zy_flow_workitem")] public class ZyFlowWorkitem { /// /// 工作项ID(主键,自增) /// [SugarColumn(ColumnName = "workitem_id", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)] public long WorkitemId { get; set; } /// /// 流程实例ID(外键关联zy_flow_instance) /// [SugarColumn(ColumnName = "instance_id", IsNullable = false)] public long InstanceId { get; set; } /// /// 节点ID /// [SugarColumn(ColumnName = "node_id", IsNullable = false)] public long NodeId { get; set; } /// /// 节点名称 /// [SugarColumn(ColumnName = "node_name", IsNullable = false)] public string NodeName { get; set; } = string.Empty; /// /// 处理人ID /// [SugarColumn(ColumnName = "handler_id", IsNullable = true)] public long? HandlerId { get; set; } /// /// 处理人姓名 /// [SugarColumn(ColumnName = "handler_name", IsNullable = true)] public string? HandlerName { get; set; } /// /// 工作项状态(ToDo/Done/Draft) /// [SugarColumn(ColumnName = "status", IsNullable = false)] public string Status { get; set; } = string.Empty; /// /// 接收时间(默认当前时间) /// [SugarColumn(ColumnName = "receive_time", IsNullable = true)] public DateTime? ReceiveTime { get; set; } = DateTime.Now; /// /// 处理时间 /// [SugarColumn(ColumnName = "handle_time", IsNullable = true)] public DateTime? HandleTime { get; set; } /// /// 处理意见 /// [SugarColumn(ColumnName = "comment", IsNullable = true)] public string? Comment { get; set; } [SugarColumn(IsIgnore = true)] public string AuditComment { get; set; } [SugarColumn(IsIgnore = true)] public string AuditResult { get; set; } [SugarColumn(IsIgnore = true)] public string NodeType { get; set; } }