|
|
@@ -5,6 +5,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8;
|
|
|
/// </summary>
|
|
|
[SugarTable("ado_s8_exception", "S8 异常主表")]
|
|
|
[SugarIndex("uk_ado_s8_exception_tenant_factory_code", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(ExceptionCode), OrderByType.Asc, IsUnique = true)]
|
|
|
+[SugarIndex("idx_ado_s8_exception_type_time", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(ExceptionTypeCode), OrderByType.Asc, nameof(CreatedAt), OrderByType.Desc)]
|
|
|
public class AdoS8Exception
|
|
|
{
|
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
|
|
|
@@ -102,4 +103,40 @@ public class AdoS8Exception
|
|
|
|
|
|
[SugarColumn(ColumnName = "updated_by", Length = 64, IsNullable = true)]
|
|
|
public string? UpdatedBy { get; set; }
|
|
|
+
|
|
|
+ /// <summary>异常类型编码(关联 ado_s8_exception_type.type_code)。配置化改造后新增。</summary>
|
|
|
+ [SugarColumn(ColumnName = "exception_type_code", Length = 64, IsNullable = true)]
|
|
|
+ public string? ExceptionTypeCode { get; set; }
|
|
|
+
|
|
|
+ /// <summary>来源数据源 ID(自动建单时填充;人工提报为空)。关联 ado_s8_data_source.id</summary>
|
|
|
+ [SugarColumn(ColumnName = "source_data_source_id", ColumnDataType = "bigint", IsNullable = true)]
|
|
|
+ public long? SourceDataSourceId { get; set; }
|
|
|
+
|
|
|
+ /// <summary>来源监视规则 ID(自动建单时填充)。关联 ado_s8_watch_rule.id</summary>
|
|
|
+ [SugarColumn(ColumnName = "source_rule_id", ColumnDataType = "bigint", IsNullable = true)]
|
|
|
+ public long? SourceRuleId { get; set; }
|
|
|
+
|
|
|
+ /// <summary>命中规则时的原始数据快照(JSON 文本,便于追溯)</summary>
|
|
|
+ [SugarColumn(ColumnName = "source_payload", Length = 4000, IsNullable = true)]
|
|
|
+ public string? SourcePayload { get; set; }
|
|
|
+
|
|
|
+ /// <summary>检验人ID(提交复检时手选)</summary>
|
|
|
+ [SugarColumn(ColumnName = "verifier_id", ColumnDataType = "bigint", IsNullable = true)]
|
|
|
+ public long? VerifierId { get; set; }
|
|
|
+
|
|
|
+ /// <summary>提交复检时间</summary>
|
|
|
+ [SugarColumn(ColumnName = "verification_assigned_at", IsNullable = true)]
|
|
|
+ public DateTime? VerificationAssignedAt { get; set; }
|
|
|
+
|
|
|
+ /// <summary>检验完成时间</summary>
|
|
|
+ [SugarColumn(ColumnName = "verified_at", IsNullable = true)]
|
|
|
+ public DateTime? VerifiedAt { get; set; }
|
|
|
+
|
|
|
+ /// <summary>检验结果(APPROVED / REJECTED)</summary>
|
|
|
+ [SugarColumn(ColumnName = "verification_result", Length = 32, IsNullable = true)]
|
|
|
+ public string? VerificationResult { get; set; }
|
|
|
+
|
|
|
+ /// <summary>检验意见</summary>
|
|
|
+ [SugarColumn(ColumnName = "verification_remark", Length = 2000, IsNullable = true)]
|
|
|
+ public string? VerificationRemark { get; set; }
|
|
|
}
|