|
@@ -21,6 +21,7 @@ using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using Microsoft.Extensions.Options;
|
|
|
using Newtonsoft.Json;
|
|
|
+using Novacode.NETCorePort;
|
|
|
using SqlSugar;
|
|
|
using System.Threading;
|
|
|
using XF.Domain.Authentications;
|
|
@@ -255,7 +256,7 @@ namespace Hotline.Api.Controllers
|
|
|
x.VisitContent = visitContent;
|
|
|
x.Volved = isSolve;
|
|
|
x.IsContact = isContact;
|
|
|
- if (orgProcessingResults.Value == "不满意" || (string.IsNullOrEmpty(orgProcessingResults.Key) && seatEvaluate != null && isSolve != null && isContact != null))
|
|
|
+ if (string.IsNullOrEmpty(orgProcessingResults.Key) || seatEvaluate == null || isSolve == null || isContact == null || orgProcessingResults.Value == "不满意")
|
|
|
{
|
|
|
//x.OrgNoSatisfiedReason = new List<Kv>() { new Kv() { Key = "7", Value = "未回复" } };
|
|
|
//TODO 记录不满意原因到内容中供人工回访甄别选择不满意原因
|
|
@@ -286,7 +287,7 @@ namespace Hotline.Api.Controllers
|
|
|
await _orderVisitRepository.UpdateAsync(aiOrderVisitDetail.OrderVisit, HttpContext.RequestAborted);
|
|
|
|
|
|
//处理Order表
|
|
|
- if (orgProcessingResults != null && aiOrderVisitDetail.OrderVisit.VisitState == EVisitState.Visited)
|
|
|
+ if (orgProcessingResults != null && !string.IsNullOrEmpty(orgProcessingResults.Key) && aiOrderVisitDetail.OrderVisit.VisitState == EVisitState.Visited)
|
|
|
{
|
|
|
aiOrderVisitDetail.OrderVisit.Order.Visited(orgProcessingResults.Key, orgProcessingResults.Value);
|
|
|
await _orderRepository.UpdateAsync(aiOrderVisitDetail.OrderVisit.Order);
|