TANG JIANG před 1 rokem
rodič
revize
d35766fa0e

+ 4 - 2
src/Hotline.Application/Handlers/FlowEngine/WorkflowNextHandler.cs

@@ -144,6 +144,9 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
                 //    expiredTimeChanged = true;
                 //}
 				await _orderRepository.UpdateAsync(order, cancellationToken);
+
+                //司法行政监督管理-推诿工单
+                await _enforcementApplication.AddPassTheBuckOrderAsync(order, _sessionContext.RequiredOrgId, _sessionContext.OrgName, cancellationToken);
                 try
                 {
                     if (notification.Dto.IsSms)
@@ -210,8 +213,7 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
                     HandlerOrgLevel = notification.HandlerOrgId.CalcOrgLevel()
                 }, cancellationToken: cancellationToken);
 
-                //司法行政监督管理-推诿工单
-                await _enforcementApplication.AddPassTheBuckOrderAsync(order, _sessionContext.RequiredOrgId, _sessionContext.OrgName, cancellationToken);
+             
                 break;
             case WorkflowModuleConsts.KnowledgeAdd:
             case WorkflowModuleConsts.KnowledgeUpdate: