|
@@ -132,21 +132,21 @@ namespace Hotline.Application.Subscribers
|
|
|
|
|
|
if (dto.Result is 1)
|
|
|
{
|
|
|
- var now = DateTime.Now;
|
|
|
- var handleDuration = order.StartTime.HasValue
|
|
|
- ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value,
|
|
|
- now, order.ProcessType is EProcessType.Zhiban)
|
|
|
- : 0;
|
|
|
- var fileDuration = order.CenterToOrgTime.HasValue
|
|
|
- ? _timeLimitDomainService.CalcWorkTime(order.CenterToOrgTime.Value,
|
|
|
- now, order.ProcessType is EProcessType.Zhiban)
|
|
|
- : 0;
|
|
|
- var allDuration = order.StartTime.HasValue
|
|
|
- ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value, now,
|
|
|
- order.ProcessType is EProcessType.Zhiban)
|
|
|
- : 0;
|
|
|
- order.File(now, handleDuration, fileDuration, allDuration);
|
|
|
- await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
+ //var now = DateTime.Now;
|
|
|
+ //var handleDuration = order.StartTime.HasValue
|
|
|
+ // ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value,
|
|
|
+ // now, order.ProcessType is EProcessType.Zhiban)
|
|
|
+ // : 0;
|
|
|
+ //var fileDuration = order.CenterToOrgTime.HasValue
|
|
|
+ // ? _timeLimitDomainService.CalcWorkTime(order.CenterToOrgTime.Value,
|
|
|
+ // now, order.ProcessType is EProcessType.Zhiban)
|
|
|
+ // : 0;
|
|
|
+ //var allDuration = order.StartTime.HasValue
|
|
|
+ // ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value, now,
|
|
|
+ // order.ProcessType is EProcessType.Zhiban)
|
|
|
+ // : 0;
|
|
|
+ //order.File(now, handleDuration, fileDuration, allDuration);
|
|
|
+ //await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
|
|
|
var current = SessionContextCreator.CreateSessionContext(dto.Source);
|
|
|
if (string.IsNullOrEmpty(order.WorkflowId))
|
|
@@ -526,21 +526,21 @@ namespace Hotline.Application.Subscribers
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- var now = DateTime.Now;
|
|
|
- var handleDuration = order.StartTime.HasValue
|
|
|
- ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value,
|
|
|
- now, order.ProcessType is EProcessType.Zhiban)
|
|
|
- : 0;
|
|
|
- var fileDuration = order.CenterToOrgTime.HasValue
|
|
|
- ? _timeLimitDomainService.CalcWorkTime(order.CenterToOrgTime.Value,
|
|
|
- now, order.ProcessType is EProcessType.Zhiban)
|
|
|
- : 0;
|
|
|
- var allDuration = order.StartTime.HasValue
|
|
|
- ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value, now,
|
|
|
- order.ProcessType is EProcessType.Zhiban)
|
|
|
- : 0;
|
|
|
- order.File(now, handleDuration, fileDuration, allDuration);
|
|
|
- await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
+ //var now = DateTime.Now;
|
|
|
+ //var handleDuration = order.StartTime.HasValue
|
|
|
+ // ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value,
|
|
|
+ // now, order.ProcessType is EProcessType.Zhiban)
|
|
|
+ // : 0;
|
|
|
+ //var fileDuration = order.CenterToOrgTime.HasValue
|
|
|
+ // ? _timeLimitDomainService.CalcWorkTime(order.CenterToOrgTime.Value,
|
|
|
+ // now, order.ProcessType is EProcessType.Zhiban)
|
|
|
+ // : 0;
|
|
|
+ //var allDuration = order.StartTime.HasValue
|
|
|
+ // ? _timeLimitDomainService.CalcWorkTime(order.StartTime.Value, now,
|
|
|
+ // order.ProcessType is EProcessType.Zhiban)
|
|
|
+ // : 0;
|
|
|
+ //order.File(now, handleDuration, fileDuration, allDuration);
|
|
|
+ //await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|