瀏覽代碼

修改推诿工单,排除汇总和结束节点

tangjiang 11 月之前
父節點
當前提交
018b1068ac

+ 5 - 3
src/Hotline.Application/Handlers/FlowEngine/WorkflowNextHandler.cs

@@ -143,10 +143,12 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
 
                 //    expiredTimeChanged = true;
                 //}
-				await _orderRepository.UpdateAsync(order, cancellationToken);
+                await _orderRepository.UpdateAsync(order, cancellationToken);
 
                 //司法行政监督管理-推诿工单
-                await _enforcementApplication.AddPassTheBuckOrderAsync(order, _sessionContext.RequiredOrgId, _sessionContext.OrgName, cancellationToken);
+                if (notification.Trace.StepType != EStepType.Summary && notification.Trace.StepType != EStepType.End && !notification.Trace.IsCountersignEndStep)
+                    await _enforcementApplication.AddPassTheBuckOrderAsync(order, _sessionContext.RequiredOrgId, _sessionContext.OrgName, cancellationToken);
+
                 try
                 {
                     if (notification.Dto.IsSms)
@@ -213,7 +215,7 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
                     HandlerOrgLevel = notification.HandlerOrgId.CalcOrgLevel()
                 }, cancellationToken: cancellationToken);
 
-             
+
                 break;
             case WorkflowModuleConsts.KnowledgeAdd:
             case WorkflowModuleConsts.KnowledgeUpdate:

+ 1 - 1
src/Hotline.Application/JudicialManagement/EnforcementApplication.cs

@@ -157,7 +157,7 @@ namespace Hotline.Application.JudicialManagement
                     if (orderData == null)
                     {
                         //没有工单数据,直接写入
-                        EnforcementOrders enforcementOrders = new EnforcementOrders()
+                        EnforcementOrders enforcementOrders = new()
                         {
                             Id = order.Id,
                             OrderNo = order.No,