|
@@ -5,6 +5,7 @@ using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using Hotline.FlowEngine.Notifications;
|
|
|
using Hotline.Orders;
|
|
|
+using Hotline.Settings;
|
|
|
using MediatR;
|
|
|
|
|
|
namespace Hotline.Application.Handlers.FlowEngine
|
|
@@ -23,7 +24,14 @@ namespace Hotline.Application.Handlers.FlowEngine
|
|
|
/// <param name="cancellationToken">Cancellation token</param>
|
|
|
public async Task Handle(OrderFinalManageNotify notification, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- await _orderDomainService.FinalManageAsync(notification.Workflow.ExternalId, cancellationToken);
|
|
|
+ var workflow = notification.Workflow;
|
|
|
+
|
|
|
+ switch (workflow.ModuleCode)
|
|
|
+ {
|
|
|
+ case WorkflowModuleConsts.OrderManage:
|
|
|
+ await _orderDomainService.FinalManageAsync(notification.Workflow.ExternalId, cancellationToken);
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|