|
@@ -656,7 +656,7 @@ namespace Hotline.Application.Subscribers
|
|
|
{
|
|
|
//处理省下行回访
|
|
|
var order = await _orderRepository.Queryable().Where(x => x.ReceiveProvinceNo == dto.ProvinceNo).FirstAsync();
|
|
|
- if (order != null)
|
|
|
+ if (order != null && order.Status<= EOrderStatus.Filed)
|
|
|
{
|
|
|
//判断是否有发布数据
|
|
|
var orderPublish = await _orderPublishRepository.Queryable()
|
|
@@ -680,11 +680,10 @@ namespace Hotline.Application.Subscribers
|
|
|
orderVisit = new OrderVisit();
|
|
|
orderVisit.No = order.No;
|
|
|
orderVisit.OrderId = order.Id;
|
|
|
- orderVisit.VisitState = EVisitState.WaitForVisit;
|
|
|
orderVisit.PublishTime = DateTime.Now;
|
|
|
orderVisit.IsCanHandle = true;
|
|
|
orderVisit.EmployeeId = order.CenterToOrgHandlerId;
|
|
|
- orderVisit.VisitState = EVisitState.Visited;
|
|
|
+ orderVisit.VisitState = EVisitState.None;
|
|
|
orderVisit.VisitTime = dto.VisitTime;
|
|
|
orderVisit.VisitType = dto.VisitType;
|
|
|
orderVisit.IsCanAiVisit = false;
|
|
@@ -721,9 +720,9 @@ namespace Hotline.Application.Subscribers
|
|
|
|
|
|
|
|
|
await _orderVisitedDetailRepository.AddRangeAsync(visitedDetail, cancellationToken);
|
|
|
- order.Visited(satisfy.Key, satisfy.Value);
|
|
|
- order.Status = EOrderStatus.Visited;
|
|
|
- await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
+ //order.Visited(satisfy.Key, satisfy.Value);
|
|
|
+ //order.Status = EOrderStatus.Visited;
|
|
|
+ //await _orderRepository.UpdateAsync(order, cancellationToken);
|
|
|
}
|
|
|
}
|
|
|
}
|