using Admin.NET.Core; namespace Admin.NET.Plugin.AiDOP.Entity; /// /// 智慧诊断改善计划。 /// [SugarTable("ado_smart_ops_improvement_plan", "智慧诊断改善计划")] [SugarIndex("idx_smart_ops_improve_tenant_module", nameof(TenantId), OrderByType.Asc, nameof(ModuleCode), OrderByType.Asc)] [SugarIndex("idx_smart_ops_improve_flow", nameof(FlowInstanceId), OrderByType.Asc)] public class AdoSmartOpsImprovementPlan : ITenantIdFilter { [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")] public long Id { get; set; } [SugarColumn(ColumnDescription = "租户")] public long? TenantId { get; set; } [SugarColumn(ColumnDescription = "工厂")] public long FactoryId { get; set; } = 1; [SugarColumn(ColumnDescription = "计划单号", Length = 64)] public string PlanNo { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "模块编码", Length = 20)] public string ModuleCode { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "诊断根指标编码", Length = 64, IsNullable = true)] public string? MetricCode { get; set; } [SugarColumn(ColumnDescription = "问题层级")] public int ProblemLevel { get; set; } [SugarColumn(ColumnDescription = "问题指标编码", Length = 64, IsNullable = true)] public string? ProblemMetricCode { get; set; } [SugarColumn(ColumnDescription = "问题名称", Length = 200)] public string ProblemName { get; set; } = string.Empty; [SugarColumn(ColumnDescription = "责任部门", Length = 200, IsNullable = true)] public string? ProblemDept { get; set; } [SugarColumn(ColumnDescription = "目标值", Length = 64, IsNullable = true)] public string? TargetValue { get; set; } [SugarColumn(ColumnDescription = "实际值", Length = 64, IsNullable = true)] public string? ActualValue { get; set; } [SugarColumn(ColumnDescription = "差距", Length = 64, IsNullable = true)] public string? GapLabel { get; set; } [SugarColumn(ColumnDescription = "根因分析", ColumnDataType = "text", IsNullable = true)] public string? RootCause { get; set; } [SugarColumn(ColumnDescription = "行动项 JSON", ColumnDataType = "text", IsNullable = true)] public string? ActionItemsJson { get; set; } [SugarColumn(ColumnDescription = "责任人", IsNullable = true)] public long? OwnerUserId { get; set; } [SugarColumn(ColumnDescription = "计划完成日期", IsNullable = true)] public DateTime? DueDate { get; set; } [SugarColumn(ColumnDescription = "状态", Length = 32)] public string Status { get; set; } = "draft"; [SugarColumn(ColumnDescription = "审批实例 Id", IsNullable = true)] public long? FlowInstanceId { get; set; } [SugarColumn(ColumnDescription = "验证结论", Length = 32, IsNullable = true)] public string? VerifyResult { get; set; } [SugarColumn(ColumnDescription = "验证值", Length = 64, IsNullable = true)] public string? VerifyValue { get; set; } [SugarColumn(ColumnDescription = "验证备注", ColumnDataType = "text", IsNullable = true)] public string? VerifyRemark { get; set; } [SugarColumn(ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } = DateTime.Now; [SugarColumn(ColumnDescription = "更新时间")] public DateTime UpdateTime { get; set; } = DateTime.Now; }