فهرست منبع

fix(s8): make timeout escalation candidate query translatable

YY968XX 2 ماه پیش
والد
کامیت
6209c7d950
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      server/Plugins/Admin.NET.Plugin.AiDOP/Service/S8/S8TimeoutAutoEscalationService.cs

+ 1 - 4
server/Plugins/Admin.NET.Plugin.AiDOP/Service/S8/S8TimeoutAutoEscalationService.cs

@@ -25,9 +25,6 @@ public class S8TimeoutAutoEscalationService : ITransient
     private readonly S8NotificationLayerResolver _layerResolver;
     private readonly ILogger<S8TimeoutAutoEscalationService> _logger;
 
-    // S8StatusRules 中 ESCALATED 仅允许从 ASSIGNED / IN_PROGRESS 转入。
-    private static readonly string[] EscalatableStatuses = { "ASSIGNED", "IN_PROGRESS" };
-
     public S8TimeoutAutoEscalationService(
         SqlSugarRepository<AdoS8Exception> rep,
         SqlSugarRepository<AdoS8ExceptionType> typeRep,
@@ -52,7 +49,7 @@ public class S8TimeoutAutoEscalationService : ITransient
             .Where(x => !x.IsDeleted
                 && x.SlaDeadline != null
                 && x.SlaDeadline < now
-                && EscalatableStatuses.Contains(x.Status)
+                && (x.Status == "ASSIGNED" || x.Status == "IN_PROGRESS")
                 && (x.ActiveFlowInstanceId == null || x.ActiveFlowInstanceId == 0))
             .OrderBy(x => x.SlaDeadline)
             .Take(batchSize)