Browse Source

chore(s8): configure escalation role codes

YY968XX 1 month ago
parent
commit
fb8d115824

+ 4 - 1
server/Plugins/Admin.NET.Plugin.AiDOP/SeedData/S8ExceptionTypeSeedData.cs

@@ -118,7 +118,10 @@ public class S8ExceptionTypeSeedData : ISqlSugarEntitySeedData<Entity.S8.AdoS8Ex
             SeverityDefault = severityDefault,
             SlaMinutes = slaMinutes,
             OwnerRoleCode = ownerRoleCode,
-            EscalateRoleCode = null,
+            // S8-ESCALATE-ROLE-CODE-CONFIG-1:保守默认 escalate=owner(同角色升级位)。
+            // 仅对 enabled=true 启用类型有效;disabled/deprecated 类型保持 null,避免历史脏数据扩散。
+            // 业务上级关系(如 ROLE_QC → ROLE_QC_MANAGER)后续在 NotificationLayer + 业务确认后细化。
+            EscalateRoleCode = enabled ? ownerRoleCode : null,
             StatsMode = "ALL",
             MobileVisible = true,
             Icon = null,