|
@@ -162,13 +162,20 @@ public class WorkflowEndHandler : INotificationHandler<EndWorkflowNotify>
|
|
|
order.FileUserOrgId = notification.Trace.HandlerOrgId;
|
|
|
order.FileUserOrgName = notification.Trace.HandlerOrgName;
|
|
|
|
|
|
+ //记录冗余归档数据
|
|
|
+ if(notification.Workflow.Steps.Any(x => x.BusinessType == Share.Enums.FlowEngine.EBusinessType.Send))
|
|
|
+ {
|
|
|
+ order.FileUserRole = EFileUserType.Dispatch;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ order.FileUserRole = EFileUserType.Seat;
|
|
|
+ }
|
|
|
if (order.ProcessType == EProcessType.Jiaoban)
|
|
|
{
|
|
|
order.FileUserRole = EFileUserType.Org;
|
|
|
}
|
|
|
- //TODO
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
var callRecord = await _trCallRecordRepository.GetAsync(p => p.CallAccept == order.CallId, cancellationToken);
|
|
|
var orderFlowDto = new OrderFlowDto
|