xf 1 年間 前
コミット
8fb45b8a78

+ 1 - 1
src/Hotline/FlowEngine/Workflows/WorkflowDomainService.cs

@@ -353,7 +353,7 @@ namespace Hotline.FlowEngine.Workflows
                     d.WorkflowId == workflow.Id
                     && d.CountersignId == currentStep.CountersignId
                     && d.StepType == EStepType.Normal
-                    && !d.IsStepBox());
+                    && !d.IsStepBox);
                 //(当前办理节点所处同一会签内的所有step全都办理完成并且如果开启了会签的step,必须会签结束)
                 var unComplete = steps.Any(d =>
                     d.Status != EWorkflowStepStatus.Completed ||

+ 3 - 2
src/Hotline/FlowEngine/Workflows/WorkflowStep.cs

@@ -82,6 +82,9 @@ public class WorkflowStep : StepBasicEntity
     [SugarColumn(IsIgnore = true)]
     public bool HasStartedCountersign => !string.IsNullOrEmpty(StartCountersignId);
 
+    [SugarColumn(IsIgnore = true)]
+    public bool IsStepBox => string.IsNullOrEmpty(ParentId);
+
     #endregion
 
     #region Method
@@ -193,8 +196,6 @@ public class WorkflowStep : StepBasicEntity
         AcceptTime = null;
     }
 
-    public bool IsStepBox() => string.IsNullOrEmpty(ParentId);
-
     #endregion
 
 }