AdoSmartOpsImprovementPlan.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using Admin.NET.Core;
  2. namespace Admin.NET.Plugin.AiDOP.Entity;
  3. /// <summary>
  4. /// 智慧诊断改善计划。
  5. /// </summary>
  6. [SugarTable("ado_smart_ops_improvement_plan", "智慧诊断改善计划")]
  7. [SugarIndex("idx_smart_ops_improve_tenant_module", nameof(TenantId), OrderByType.Asc, nameof(ModuleCode), OrderByType.Asc)]
  8. [SugarIndex("idx_smart_ops_improve_flow", nameof(FlowInstanceId), OrderByType.Asc)]
  9. public class AdoSmartOpsImprovementPlan : ITenantIdFilter
  10. {
  11. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  12. public long Id { get; set; }
  13. [SugarColumn(ColumnDescription = "租户")]
  14. public long? TenantId { get; set; }
  15. [SugarColumn(ColumnDescription = "工厂")]
  16. public long FactoryId { get; set; } = 1;
  17. [SugarColumn(ColumnDescription = "计划单号", Length = 64)]
  18. public string PlanNo { get; set; } = string.Empty;
  19. [SugarColumn(ColumnDescription = "模块编码", Length = 20)]
  20. public string ModuleCode { get; set; } = string.Empty;
  21. [SugarColumn(ColumnDescription = "诊断根指标编码", Length = 64, IsNullable = true)]
  22. public string? MetricCode { get; set; }
  23. [SugarColumn(ColumnDescription = "问题层级")]
  24. public int ProblemLevel { get; set; }
  25. [SugarColumn(ColumnDescription = "问题指标编码", Length = 64, IsNullable = true)]
  26. public string? ProblemMetricCode { get; set; }
  27. [SugarColumn(ColumnDescription = "问题名称", Length = 200)]
  28. public string ProblemName { get; set; } = string.Empty;
  29. [SugarColumn(ColumnDescription = "责任部门", Length = 200, IsNullable = true)]
  30. public string? ProblemDept { get; set; }
  31. [SugarColumn(ColumnDescription = "目标值", Length = 64, IsNullable = true)]
  32. public string? TargetValue { get; set; }
  33. [SugarColumn(ColumnDescription = "实际值", Length = 64, IsNullable = true)]
  34. public string? ActualValue { get; set; }
  35. [SugarColumn(ColumnDescription = "差距", Length = 64, IsNullable = true)]
  36. public string? GapLabel { get; set; }
  37. [SugarColumn(ColumnDescription = "根因分析", ColumnDataType = "text", IsNullable = true)]
  38. public string? RootCause { get; set; }
  39. [SugarColumn(ColumnDescription = "行动项 JSON", ColumnDataType = "text", IsNullable = true)]
  40. public string? ActionItemsJson { get; set; }
  41. [SugarColumn(ColumnDescription = "责任人", IsNullable = true)]
  42. public long? OwnerUserId { get; set; }
  43. [SugarColumn(ColumnDescription = "计划完成日期", IsNullable = true)]
  44. public DateTime? DueDate { get; set; }
  45. [SugarColumn(ColumnDescription = "状态", Length = 32)]
  46. public string Status { get; set; } = "draft";
  47. [SugarColumn(ColumnDescription = "审批实例 Id", IsNullable = true)]
  48. public long? FlowInstanceId { get; set; }
  49. [SugarColumn(ColumnDescription = "验证结论", Length = 32, IsNullable = true)]
  50. public string? VerifyResult { get; set; }
  51. [SugarColumn(ColumnDescription = "验证值", Length = 64, IsNullable = true)]
  52. public string? VerifyValue { get; set; }
  53. [SugarColumn(ColumnDescription = "验证备注", ColumnDataType = "text", IsNullable = true)]
  54. public string? VerifyRemark { get; set; }
  55. [SugarColumn(ColumnDescription = "创建时间")]
  56. public DateTime CreateTime { get; set; } = DateTime.Now;
  57. [SugarColumn(ColumnDescription = "更新时间")]
  58. public DateTime UpdateTime { get; set; } = DateTime.Now;
  59. }