|
@@ -1193,8 +1193,8 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
handler.orgId, handler.orgName, handler.roleId, handler.roleName);
|
|
|
//更新节点CreationTime 派单量统计 待派单数据使用
|
|
|
step.CreationTime = DateTime.Now;
|
|
|
- step.WorkflowTrace.CreationTime = DateTime.Now;
|
|
|
- }
|
|
|
+ step.WorkflowTrace.CreationTime = DateTime.Now;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
var steps = handlers.SelectMany(d => d.steps).ToList();
|
|
@@ -2245,7 +2245,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
await _workflowTraceRepository.UpdateAsync(pubTrace, cancellation);
|
|
|
|
|
|
//create visit trace
|
|
|
- await CreateVisitTraceAsync(pubTrace, visitAcceptor, orderVisitId, cancellation);
|
|
|
+ await CreateVisitTraceAsync(pubTrace, visitAcceptor, orderVisitId, handleTime.AddSeconds(1), cancellation);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -3497,7 +3497,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
}
|
|
|
|
|
|
private async Task<WorkflowTrace> CreateVisitTraceAsync(WorkflowTrace pubTrace, UserInfo acceptor, string orderVisitId,
|
|
|
- CancellationToken cancellation)
|
|
|
+ DateTime creationTime, CancellationToken cancellation)
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(orderVisitId))
|
|
|
throw new UserFriendlyException($"参数异常,orderVisitId不能为空, pubTraceId: {pubTrace.Id}");
|
|
@@ -3525,6 +3525,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
visitTrace.AcceptorOrgName = acceptor.OrgName;
|
|
|
|
|
|
visitTrace.StepExpiredTime = null;
|
|
|
+ visitTrace.CreationTime = creationTime;
|
|
|
|
|
|
await _workflowTraceRepository.AddAsync(visitTrace, cancellation);
|
|
|
|