|
@@ -456,8 +456,8 @@ public class OrderController : BaseController
|
|
int visitCount = await _orderVisitRepository.CountAsync(
|
|
int visitCount = await _orderVisitRepository.CountAsync(
|
|
x => x.OrderId == orderVisit.OrderId && x.VisitState == Share.Enums.Order.EVisitState.Visited,
|
|
x => x.OrderId == orderVisit.OrderId && x.VisitState == Share.Enums.Order.EVisitState.Visited,
|
|
HttpContext.RequestAborted);
|
|
HttpContext.RequestAborted);
|
|
- int againCount = await _orderVisitRepository.CountAsync(
|
|
|
|
- x => x.OrderId == orderVisit.OrderId && x.AgainState == EAgainState.DoAgain, HttpContext.RequestAborted);
|
|
|
|
|
|
+ //int againCount = await _orderVisitRepository.CountAsync(
|
|
|
|
+ // x => x.OrderId == orderVisit.OrderId && x.AgainState == EAgainState.DoAgain, HttpContext.RequestAborted);
|
|
var voiceEvaluate = EnumExts.GetDescriptions<EVoiceEvaluate>();
|
|
var voiceEvaluate = EnumExts.GetDescriptions<EVoiceEvaluate>();
|
|
var seatEvaluate = EnumExts.GetDescriptions<ESeatEvaluate>();
|
|
var seatEvaluate = EnumExts.GetDescriptions<ESeatEvaluate>();
|
|
var visitSatisfaction = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.VisitSatisfaction);
|
|
var visitSatisfaction = _sysDicDataCacheManager.GetSysDicDataCache(SysDicTypeConsts.VisitSatisfaction);
|
|
@@ -468,7 +468,7 @@ public class OrderController : BaseController
|
|
{
|
|
{
|
|
OrderVisitModel = orderVisit,
|
|
OrderVisitModel = orderVisit,
|
|
VisitCount = visitCount,
|
|
VisitCount = visitCount,
|
|
- AgainCount = againCount,
|
|
|
|
|
|
+ //AgainCount = againCount,
|
|
VisitSatisfaction = visitSatisfaction,
|
|
VisitSatisfaction = visitSatisfaction,
|
|
DissatisfiedReason = dissatisfiedReason,
|
|
DissatisfiedReason = dissatisfiedReason,
|
|
VisitManner = visitManner,
|
|
VisitManner = visitManner,
|
|
@@ -522,15 +522,6 @@ public class OrderController : BaseController
|
|
|
|
|
|
var first = dto.VisitDetails.FirstOrDefault(x => x.VisitTarget == EVisitTarget.Org);
|
|
var first = dto.VisitDetails.FirstOrDefault(x => x.VisitTarget == EVisitTarget.Org);
|
|
|
|
|
|
-
|
|
|
|
- //更新主表
|
|
|
|
- if (dto.IsPutThrough)
|
|
|
|
- {
|
|
|
|
- visit.VisitState = Share.Enums.Order.EVisitState.Visited;
|
|
|
|
- visit.VisitTime = DateTime.Now;
|
|
|
|
- visit.VisitType = EVisitType.ArtificialVisit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
visit.IsPutThrough = dto.IsPutThrough;
|
|
visit.IsPutThrough = dto.IsPutThrough;
|
|
visit.AgainState = dto.IsAgain ? EAgainState.NeedAgain : EAgainState.NoAgain;
|
|
visit.AgainState = dto.IsAgain ? EAgainState.NeedAgain : EAgainState.NoAgain;
|
|
visit.EmployeeId = _sessionContext.UserId;
|
|
visit.EmployeeId = _sessionContext.UserId;
|
|
@@ -538,12 +529,13 @@ public class OrderController : BaseController
|
|
{
|
|
{
|
|
visit.NowEvaluate = first.OrgProcessingResults;
|
|
visit.NowEvaluate = first.OrgProcessingResults;
|
|
}
|
|
}
|
|
- //await _orderVisitRepository.UpdateAsync(visit,HttpContext.RequestAborted);
|
|
|
|
-
|
|
|
|
//update order
|
|
//update order
|
|
if (dto.IsPutThrough)
|
|
if (dto.IsPutThrough)
|
|
{
|
|
{
|
|
- if (first != null)
|
|
|
|
|
|
+ visit.VisitState = Share.Enums.Order.EVisitState.Visited;
|
|
|
|
+ visit.VisitTime = DateTime.Now;
|
|
|
|
+ visit.VisitType = EVisitType.ArtificialVisit;
|
|
|
|
+ if (first != null)
|
|
{
|
|
{
|
|
visit.Order.Visited(first.OrgProcessingResults.Key, first.OrgProcessingResults.Value);
|
|
visit.Order.Visited(first.OrgProcessingResults.Key, first.OrgProcessingResults.Value);
|
|
}
|
|
}
|
|
@@ -581,7 +573,6 @@ public class OrderController : BaseController
|
|
ClientGuid = ""
|
|
ClientGuid = ""
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
if (first != null)
|
|
if (first != null)
|
|
{
|
|
{
|
|
//写入质检
|
|
//写入质检
|
|
@@ -589,6 +580,7 @@ public class OrderController : BaseController
|
|
HttpContext.RequestAborted);
|
|
HttpContext.RequestAborted);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ else { await _orderVisitRepository.UpdateAsync(visit, HttpContext.RequestAborted); }
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|