xf 1 ano atrás
pai
commit
14a85b29b4

+ 4 - 3
src/Hotline.Application/FlowEngine/WorkflowApplication.cs

@@ -983,9 +983,10 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
                 if (!currentStep.IsTopCountersignEndStep(workflow.TopCountersignStepId))
                 {
                     //汇总节点(非顶级)
-                    var csStartStep = workflow.Steps.FirstOrDefault(d => d.Id == currentStep.CountersignStartStepId);
-                    if (csStartStep is null)
-                        throw new UserFriendlyException("未查询到会签开始节点");
+                    //var csStartStep = workflow.Steps.FirstOrDefault(d => d.Id == currentStep.CountersignStartStepId);
+                    //if (csStartStep is null)
+                    //    throw new UserFriendlyException("未查询到会签开始节点");
+                    var csStartStep = GetCsLoopStartStep(workflow, currentStep);
 
                     var prevStep = workflow.Steps.FirstOrDefault(d => d.Id == csStartStep.PrevStepId);
                     if (prevStep is null)