|
@@ -18,6 +18,7 @@ using MapsterMapper;
|
|
|
using MediatR;
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
using Newtonsoft.Json;
|
|
|
+using XF.Domain.Authentications;
|
|
|
using XF.Domain.Repository;
|
|
|
|
|
|
namespace Hotline.Application.Handlers.FlowEngine;
|
|
@@ -37,6 +38,7 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
|
|
|
private readonly IOrderDelayRepository _orderDelayRepository;
|
|
|
private readonly IKnowledgeRepository _knowledgeRepository;
|
|
|
private readonly IKnowledgeWorkFlowRepository _knowledgeWorkFlowRepository;
|
|
|
+ private readonly ISessionContext _sessionContext;
|
|
|
|
|
|
public WorkflowNextHandler(
|
|
|
IOrderDomainService orderDomainService,
|
|
@@ -51,6 +53,7 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
|
|
|
IQualityApplication qualityApplication,
|
|
|
IKnowledgeRepository knowledgeRepository,
|
|
|
IKnowledgeWorkFlowRepository knowledgeWorkFlowRepository,
|
|
|
+ ISessionContext sessionContext,
|
|
|
IOrderDelayRepository orderDelayRepository)
|
|
|
{
|
|
|
_orderDomainService = orderDomainService;
|
|
@@ -66,6 +69,7 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
|
|
|
_orderDelayRepository = orderDelayRepository;
|
|
|
_knowledgeRepository = knowledgeRepository;
|
|
|
_knowledgeWorkFlowRepository = knowledgeWorkFlowRepository;
|
|
|
+ _sessionContext = sessionContext;
|
|
|
}
|
|
|
|
|
|
/// <summary>Handles a notification</summary>
|
|
@@ -116,7 +120,7 @@ public class WorkflowNextHandler : INotificationHandler<NextStepNotify>
|
|
|
else if (data.FlowDirection is EFlowDirection.CenterToOrg)
|
|
|
{
|
|
|
order.CenterToOrg(expiredTimeConfig.TimeText, expiredTimeConfig.Count,
|
|
|
- expiredTimeConfig.TimeType, expiredTimeConfig.ExpiredTime, expiredTimeConfig.NearlyExpiredTime);
|
|
|
+ expiredTimeConfig.TimeType, expiredTimeConfig.ExpiredTime, expiredTimeConfig.NearlyExpiredTime, _sessionContext.UserId, _sessionContext.UserName);
|
|
|
//写入质检
|
|
|
await _qualityApplication.AddQualityAsync(EQualitySource.Send, order.Id, cancellationToken);
|
|
|
}
|