AdoModuleDashboardRebuildJob.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. namespace Admin.NET.Plugin.AiDOP.Entity.SmartOps;
  2. [SugarTable("ado_module_dashboard_rebuild_job", "模块看板完整重算任务")]
  3. public class AdoModuleDashboardRebuildJob
  4. {
  5. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnName = "module_code", Length = 8)]
  8. public string ModuleCode { get; set; } = string.Empty;
  9. [SugarColumn(ColumnName = "tenant_id")]
  10. public long TenantId { get; set; }
  11. [SugarColumn(ColumnName = "factory_id")]
  12. public long FactoryId { get; set; } = 1;
  13. [SugarColumn(ColumnName = "status", Length = 20)]
  14. public string Status { get; set; } = "QUEUED";
  15. [SugarColumn(ColumnName = "trigger_type", Length = 20)]
  16. public string TriggerType { get; set; } = "MANUAL";
  17. [SugarColumn(ColumnName = "requested_by", IsNullable = true)]
  18. public long? RequestedBy { get; set; }
  19. /// <summary>管理员请求协作式取消。Worker 在阶段边界看到后中止,不在此处直接改状态。</summary>
  20. [SugarColumn(ColumnName = "cancel_requested_flag")]
  21. public bool CancelRequestedFlag { get; set; }
  22. [SugarColumn(ColumnName = "batch_id", Length = 100, IsNullable = true)]
  23. public string BatchId { get; set; }
  24. [SugarColumn(ColumnName = "transform_run_log_id", IsNullable = true)]
  25. public long? TransformRunLogId { get; set; }
  26. [SugarColumn(ColumnName = "current_stage", Length = 32)]
  27. public string CurrentStage { get; set; } = "QUEUED";
  28. [SugarColumn(ColumnName = "stage_index")]
  29. public int StageIndex { get; set; }
  30. [SugarColumn(ColumnName = "stage_total")]
  31. public int StageTotal { get; set; }
  32. [SugarColumn(ColumnName = "progress_percent")]
  33. public int ProgressPercent { get; set; }
  34. [SugarColumn(ColumnName = "progress_message", Length = 255, IsNullable = true)]
  35. public string ProgressMessage { get; set; }
  36. [SugarColumn(ColumnName = "failed_stage", Length = 32, IsNullable = true)]
  37. public string FailedStage { get; set; }
  38. [SugarColumn(ColumnName = "stage_rows")]
  39. public int StageRows { get; set; }
  40. [SugarColumn(ColumnName = "standard_rows")]
  41. public int StandardRows { get; set; }
  42. [SugarColumn(ColumnName = "dwd_rows")]
  43. public int DwdRows { get; set; }
  44. [SugarColumn(ColumnName = "kpi_rows")]
  45. public int KpiRows { get; set; }
  46. [SugarColumn(ColumnName = "atomic_rows")]
  47. public int AtomicRows { get; set; }
  48. [SugarColumn(ColumnName = "detail_json", ColumnDataType = "text", IsNullable = true)]
  49. public string DetailJson { get; set; }
  50. [SugarColumn(ColumnName = "error_message", Length = 2000, IsNullable = true)]
  51. public string ErrorMessage { get; set; }
  52. [SugarColumn(ColumnName = "submitted_at")]
  53. public DateTime SubmittedAt { get; set; }
  54. [SugarColumn(ColumnName = "started_at", IsNullable = true)]
  55. public DateTime? StartedAt { get; set; }
  56. [SugarColumn(ColumnName = "finished_at", IsNullable = true)]
  57. public DateTime? FinishedAt { get; set; }
  58. [SugarColumn(ColumnName = "heartbeat_at", IsNullable = true)]
  59. public DateTime? HeartbeatAt { get; set; }
  60. [SugarColumn(ColumnName = "last_progress_at", IsNullable = true)]
  61. public DateTime? LastProgressAt { get; set; }
  62. [SugarColumn(ColumnName = "duration_ms", IsNullable = true)]
  63. public int? DurationMs { get; set; }
  64. [SugarColumn(ColumnName = "create_time")]
  65. public DateTime CreateTime { get; set; }
  66. [SugarColumn(ColumnName = "update_time")]
  67. public DateTime UpdateTime { get; set; }
  68. }