2026-02-05 09:08:32 +08:00
|
|
|
|
using SqlSugar;
|
2026-02-04 21:43:24 +08:00
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
namespace OpenAuth.Repository.Domain.workflow;
|
2026-02-04 21:43:24 +08:00
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 流程实例表(zy_flow_instance)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarTable("zy_flow_instance")]
|
|
|
|
|
|
public class ZyFlowInstance
|
2026-02-04 21:43:24 +08:00
|
|
|
|
{
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 实例ID(主键,自增)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "instance_id", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
|
2026-02-04 21:43:24 +08:00
|
|
|
|
public long InstanceId { get; set; }
|
|
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 模板ID(外键关联zy_flow_template)
|
|
|
|
|
|
/// </summary>
|
2026-02-04 21:43:24 +08:00
|
|
|
|
[SugarColumn(ColumnName = "template_id", IsNullable = false)]
|
|
|
|
|
|
public long TemplateId { get; set; }
|
|
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 流程编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "flow_code", IsNullable = false)]
|
2026-02-07 16:38:50 +08:00
|
|
|
|
public string FlowCode { get; set; }
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 业务编号(唯一)
|
|
|
|
|
|
/// </summary>
|
2026-02-04 21:43:24 +08:00
|
|
|
|
[SugarColumn(ColumnName = "business_no", IsNullable = false)]
|
2026-02-07 16:38:50 +08:00
|
|
|
|
public string BusinessNo { get; set; }
|
2026-02-04 21:43:24 +08:00
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
2026-02-07 09:25:57 +08:00
|
|
|
|
/// 流程状态(枚举值:Draft(拟办)、Submitted(已提交)、Forwarded(已转发)、Auditing(审核中)、Summarized(已汇总)、Completed(已完成)、Rejected(已驳回))
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "status", IsNullable = false)]
|
2026-02-07 16:38:50 +08:00
|
|
|
|
public string Status { get; set; }
|
2026-02-05 09:08:32 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 当前节点ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "current_node_id", IsNullable = false)]
|
|
|
|
|
|
public long CurrentNodeId { get; set; }
|
2026-02-04 21:43:24 +08:00
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发起人ID
|
|
|
|
|
|
/// </summary>
|
2026-02-04 21:43:24 +08:00
|
|
|
|
[SugarColumn(ColumnName = "initiator_id", IsNullable = false)]
|
|
|
|
|
|
public long InitiatorId { get; set; }
|
|
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 发起人姓名
|
|
|
|
|
|
/// </summary>
|
2026-02-04 21:43:24 +08:00
|
|
|
|
[SugarColumn(ColumnName = "initiator_name", IsNullable = false)]
|
2026-02-07 16:38:50 +08:00
|
|
|
|
public string InitiatorName { get; set; }
|
2026-02-04 21:43:24 +08:00
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间(默认当前时间)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "create_time", IsNullable = true)]
|
2026-02-07 16:38:50 +08:00
|
|
|
|
public DateTime? CreateTime { get; set; }
|
2026-02-04 21:43:24 +08:00
|
|
|
|
|
2026-02-05 09:08:32 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 完成时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "finish_time", IsNullable = true)]
|
2026-02-04 21:43:24 +08:00
|
|
|
|
public DateTime? FinishTime { get; set; }
|
|
|
|
|
|
}
|