Prechádzať zdrojové kódy

fix(s8): t2a-fix remove IsIdentity on order flow entities to honor explicit seed Ids

YY968XX 2 týždňov pred
rodič
commit
067fbda99e

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S8/OrderFlow/AdoS8OrderFlowOrder.cs

@@ -11,7 +11,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8.OrderFlow;
 [SugarIndex("idx_order_flow_order_customer", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(CustomerCode), OrderByType.Asc)]
 public class AdoS8OrderFlowOrder
 {
-    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
+    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDataType = "bigint")]
     public long Id { get; set; }
 
     [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S8/OrderFlow/AdoS8OrderFlowProcurementPivot.cs

@@ -14,7 +14,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8.OrderFlow;
 [SugarIndex("idx_order_flow_proc_pivot_scenario", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(ScenarioCode), OrderByType.Asc, nameof(IsDeleted), OrderByType.Asc)]
 public class AdoS8OrderFlowProcurementPivot
 {
-    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
+    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDataType = "bigint")]
     public long Id { get; set; }
 
     /// <summary>NULL = baseline 行;非 NULL = 订单级行。</summary>

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S8/OrderFlow/AdoS8OrderFlowSnapshot.cs

@@ -11,7 +11,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8.OrderFlow;
 [SugarIndex("idx_order_flow_snapshot_scope", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(ScopeCode), OrderByType.Asc, nameof(IsDeleted), OrderByType.Asc)]
 public class AdoS8OrderFlowSnapshot
 {
-    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
+    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDataType = "bigint")]
     public long Id { get; set; }
 
     [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S8/OrderFlow/AdoS8OrderFlowStage.cs

@@ -11,7 +11,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8.OrderFlow;
 [SugarIndex("idx_order_flow_stage_order_code", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(OrderCode), OrderByType.Asc)]
 public class AdoS8OrderFlowStage
 {
-    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
+    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDataType = "bigint")]
     public long Id { get; set; }
 
     /// <summary>外键 → ado_s8_order_flow_order.id。</summary>

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S8/OrderFlow/AdoS8OrderFlowSubstep.cs

@@ -12,7 +12,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8.OrderFlow;
 [SugarIndex("idx_order_flow_substep_flow", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(OrderFlowCode), OrderByType.Asc)]
 public class AdoS8OrderFlowSubstep
 {
-    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
+    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDataType = "bigint")]
     public long Id { get; set; }
 
     /// <summary>外键 → ado_s8_order_flow_order.id。</summary>

+ 1 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/Entity/S8/OrderFlow/AdoS8OrderFlowSubstepUnit.cs

@@ -12,7 +12,7 @@ namespace Admin.NET.Plugin.AiDOP.Entity.S8.OrderFlow;
 [SugarIndex("idx_order_flow_substep_unit_substep", nameof(TenantId), OrderByType.Asc, nameof(FactoryId), OrderByType.Asc, nameof(SubstepCode), OrderByType.Asc)]
 public class AdoS8OrderFlowSubstepUnit
 {
-    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
+    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, ColumnDataType = "bigint")]
     public long Id { get; set; }
 
     /// <summary>外键 → ado_s8_order_flow_substep.id。</summary>