|
@@ -347,11 +347,10 @@ namespace Hotline.Api.Controllers
|
|
|
{
|
|
|
switch (request.TypeId)
|
|
|
{
|
|
|
- //待处理子表
|
|
|
case 1:
|
|
|
var aiVisit = await _aiOrderVisitRepository.Queryable()
|
|
|
.Includes(x => x.AiOrderVisitDetails,s=>s.OrderVisit)
|
|
|
- .FirstAsync(x => x.Id == request.Id);
|
|
|
+ .FirstAsync(x => x.Id == request.Id,HttpContext.RequestAborted);
|
|
|
if (aiVisit!=null && !string.IsNullOrEmpty(aiVisit.BatchUid))
|
|
|
{
|
|
|
if (aiVisit.TaskState != EAiOrderVisitTaskState.NoStarted || aiVisit.TaskState != EAiOrderVisitTaskState.InProgress)
|
|
@@ -406,6 +405,25 @@ namespace Hotline.Api.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ [HttpPost("callout/pausecallouttask")]
|
|
|
+ public async Task PauseCalloutTask([FromBody] CloseCalloutTaskReq request)
|
|
|
+ {
|
|
|
+ switch (request.TypeId)
|
|
|
+ {
|
|
|
+ case 1:
|
|
|
+ var aiVisit = await _aiOrderVisitRepository.Queryable()
|
|
|
+ .FirstAsync(x => x.Id == request.Id,HttpContext.RequestAborted);
|
|
|
+ if (aiVisit != null && !string.IsNullOrEmpty(aiVisit.BatchUid))
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ throw UserFriendlyException.SameMessage("未知业务");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
#endregion
|
|
|
|