|
|
@@ -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)
|