|
@@ -492,22 +492,20 @@ public class WorkflowController : BaseController
|
|
|
*/
|
|
|
var workflow = await _workflowDomainService.GetWorkflowAsync(workflowId, withSteps: true,
|
|
|
cancellationToken: HttpContext.RequestAborted);
|
|
|
- if (workflow.IsInCountersign && workflow.CounterSignType is ECounterSignType.Center)
|
|
|
- {
|
|
|
- var handlers = workflow.Steps
|
|
|
- .Where(d => d.BusinessType == EBusinessType.Send && !d.IsOrigin)
|
|
|
- .SelectMany(d => d.Handlers)
|
|
|
- .Distinct()
|
|
|
- .ToList();
|
|
|
- return handlers.Where(d => !d.Key.IsCenter()).ToList();
|
|
|
- }
|
|
|
+ //if (workflow.IsInCountersign && workflow.CounterSignType is ECounterSignType.Center)
|
|
|
+ //{
|
|
|
+ // var handlers = workflow.Steps
|
|
|
+ // .Where(d => d.BusinessType == EBusinessType.Send && !d.IsOrigin)
|
|
|
+ // .SelectMany(d => d.Handlers)
|
|
|
+ // .Distinct()
|
|
|
+ // .ToList();
|
|
|
+ // return handlers.Where(d => !d.Key.IsCenter()).ToList();
|
|
|
+ //}
|
|
|
|
|
|
return workflow.Steps
|
|
|
- .Where(d => d.StepType != EStepType.Start
|
|
|
- && d.StepType != EStepType.End
|
|
|
- && d.IsOrigin)
|
|
|
+ .Where(d => d.StepType != EStepType.Start && d.StepType != EStepType.End)
|
|
|
.SelectMany(d => d.Handlers)
|
|
|
- .Distinct()
|
|
|
+ .DistinctBy(d => d.Key)
|
|
|
.ToList();
|
|
|
}
|
|
|
|