|
@@ -266,7 +266,8 @@ public class OrderController : BaseController
|
|
{
|
|
{
|
|
orderVisit.VisitState = EVisitState.Visited;
|
|
orderVisit.VisitState = EVisitState.Visited;
|
|
}
|
|
}
|
|
- if(order.CounterSignType != ECounterSignType.Center)
|
|
|
|
|
|
+
|
|
|
|
+ if (order.CounterSignType != ECounterSignType.Center)
|
|
{
|
|
{
|
|
orderVisit.IsCanAiVisit = true;
|
|
orderVisit.IsCanAiVisit = true;
|
|
}
|
|
}
|
|
@@ -1999,6 +2000,7 @@ public class OrderController : BaseController
|
|
switch (flowDirection)
|
|
switch (flowDirection)
|
|
{
|
|
{
|
|
case EFlowDirection.CenterToOrg:
|
|
case EFlowDirection.CenterToOrg:
|
|
|
|
+ //var a = _timeLimitDomainService.GetOrderTimeLimitConfig(acceptType);
|
|
return new TimeConfig { Count = 3, TimeType = ETimeType.Day };
|
|
return new TimeConfig { Count = 3, TimeType = ETimeType.Day };
|
|
case EFlowDirection.OrgToCenter:
|
|
case EFlowDirection.OrgToCenter:
|
|
return new TimeConfig { Count = 1, TimeType = ETimeType.Day };
|
|
return new TimeConfig { Count = 1, TimeType = ETimeType.Day };
|
|
@@ -2612,14 +2614,14 @@ public class OrderController : BaseController
|
|
var oders = await _orderRepository.Queryable().Where(x => x.Contact == phone)
|
|
var oders = await _orderRepository.Queryable().Where(x => x.Contact == phone)
|
|
.OrderBy(x => x.CreationTime, OrderByType.Desc).ToListAsync();
|
|
.OrderBy(x => x.CreationTime, OrderByType.Desc).ToListAsync();
|
|
var allOrderNum = oders.Count;
|
|
var allOrderNum = oders.Count;
|
|
- var endOrderNum = oders.Count(x =>(int)x.Status >= 300);
|
|
|
|
|
|
+ var endOrderNum = oders.Count(x => (int)x.Status >= 300);
|
|
var handOrderNum =
|
|
var handOrderNum =
|
|
oders.Count(x => (int)x.Status < 300);
|
|
oders.Count(x => (int)x.Status < 300);
|
|
var DissatisfactionNum = await _orderVisitedDetailRepository.Queryable()
|
|
var DissatisfactionNum = await _orderVisitedDetailRepository.Queryable()
|
|
.Includes(x => x.OrderVisit)
|
|
.Includes(x => x.OrderVisit)
|
|
- .Includes(x=>x.OrderVisit,v=>v.Order)
|
|
|
|
|
|
+ .Includes(x => x.OrderVisit, v => v.Order)
|
|
.Where(x => x.OrderVisit.Order.Contact == phone && (SqlFunc.JsonField(x.OrgProcessingResults, "Value") == "不满意" ||
|
|
.Where(x => x.OrderVisit.Order.Contact == phone && (SqlFunc.JsonField(x.OrgProcessingResults, "Value") == "不满意" ||
|
|
- SqlFunc.JsonField(x.OrgProcessingResults, "Value") == "非常不满意"))
|
|
|
|
|
|
+ SqlFunc.JsonField(x.OrgProcessingResults, "Value") == "非常不满意"))
|
|
.Distinct().Select(x => new { x.OrderVisit.OrderId }).CountAsync();
|
|
.Distinct().Select(x => new { x.OrderVisit.OrderId }).CountAsync();
|
|
//来电历史
|
|
//来电历史
|
|
//TODO 等待通讯对接完成 还缺少 上次来电时间
|
|
//TODO 等待通讯对接完成 还缺少 上次来电时间
|