| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- namespace Admin.NET.Plugin.AiDOP.Entity.SmartOps;
- [SugarTable("ado_module_dashboard_rebuild_job", "模块看板完整重算任务")]
- public class AdoModuleDashboardRebuildJob
- {
- [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
- public long Id { get; set; }
- [SugarColumn(ColumnName = "module_code", Length = 8)]
- public string ModuleCode { get; set; } = string.Empty;
- [SugarColumn(ColumnName = "tenant_id")]
- public long TenantId { get; set; }
- [SugarColumn(ColumnName = "factory_id")]
- public long FactoryId { get; set; } = 1;
- [SugarColumn(ColumnName = "status", Length = 20)]
- public string Status { get; set; } = "QUEUED";
- [SugarColumn(ColumnName = "trigger_type", Length = 20)]
- public string TriggerType { get; set; } = "MANUAL";
- [SugarColumn(ColumnName = "requested_by", IsNullable = true)]
- public long? RequestedBy { get; set; }
- /// <summary>管理员请求协作式取消。Worker 在阶段边界看到后中止,不在此处直接改状态。</summary>
- [SugarColumn(ColumnName = "cancel_requested_flag")]
- public bool CancelRequestedFlag { get; set; }
- [SugarColumn(ColumnName = "batch_id", Length = 100, IsNullable = true)]
- public string BatchId { get; set; }
- [SugarColumn(ColumnName = "transform_run_log_id", IsNullable = true)]
- public long? TransformRunLogId { get; set; }
- [SugarColumn(ColumnName = "current_stage", Length = 32)]
- public string CurrentStage { get; set; } = "QUEUED";
- [SugarColumn(ColumnName = "stage_index")]
- public int StageIndex { get; set; }
- [SugarColumn(ColumnName = "stage_total")]
- public int StageTotal { get; set; }
- [SugarColumn(ColumnName = "progress_percent")]
- public int ProgressPercent { get; set; }
- [SugarColumn(ColumnName = "progress_message", Length = 255, IsNullable = true)]
- public string ProgressMessage { get; set; }
- [SugarColumn(ColumnName = "failed_stage", Length = 32, IsNullable = true)]
- public string FailedStage { get; set; }
- [SugarColumn(ColumnName = "stage_rows")]
- public int StageRows { get; set; }
- [SugarColumn(ColumnName = "standard_rows")]
- public int StandardRows { get; set; }
- [SugarColumn(ColumnName = "dwd_rows")]
- public int DwdRows { get; set; }
- [SugarColumn(ColumnName = "kpi_rows")]
- public int KpiRows { get; set; }
- [SugarColumn(ColumnName = "atomic_rows")]
- public int AtomicRows { get; set; }
- [SugarColumn(ColumnName = "detail_json", ColumnDataType = "text", IsNullable = true)]
- public string DetailJson { get; set; }
- [SugarColumn(ColumnName = "error_message", Length = 2000, IsNullable = true)]
- public string ErrorMessage { get; set; }
- [SugarColumn(ColumnName = "submitted_at")]
- public DateTime SubmittedAt { get; set; }
- [SugarColumn(ColumnName = "started_at", IsNullable = true)]
- public DateTime? StartedAt { get; set; }
- [SugarColumn(ColumnName = "finished_at", IsNullable = true)]
- public DateTime? FinishedAt { get; set; }
- [SugarColumn(ColumnName = "heartbeat_at", IsNullable = true)]
- public DateTime? HeartbeatAt { get; set; }
- [SugarColumn(ColumnName = "last_progress_at", IsNullable = true)]
- public DateTime? LastProgressAt { get; set; }
- [SugarColumn(ColumnName = "duration_ms", IsNullable = true)]
- public int? DurationMs { get; set; }
- [SugarColumn(ColumnName = "create_time")]
- public DateTime CreateTime { get; set; }
- [SugarColumn(ColumnName = "update_time")]
- public DateTime UpdateTime { get; set; }
- }
|