浏览代码

Merge branch 'feature_batchoutcall_dss' of Fengwo/hotline into dev

dengshengshuang 11 月之前
父节点
当前提交
1be2548de5
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      src/Hotline.Api/Controllers/AiController.cs
  2. 4 0
      src/Hotline/Ai/CallOut/CallOutTask.cs

+ 1 - 1
src/Hotline.Api/Controllers/AiController.cs

@@ -122,7 +122,7 @@ namespace Hotline.Api.Controllers
                 .Select(x=> new AiCallOutTemplateQueryRep() { 
                     Id = x.Id,
                     TemplateContent  = x.TemplateContent,
-                    CallOutTaskCount = x.CallOutTasks!=null? x.CallOutTasks.Count : 0,
+                    CallOutTaskCount = x.CallOutTasks!=null? x.CallOutTasks.Count() : 0,
                     CreationTime = x.CreationTime,
                     IsEnable = x.IsEnable,
                     CreatorName=x.CreatorName,

+ 4 - 0
src/Hotline/Ai/CallOut/CallOutTask.cs

@@ -16,6 +16,10 @@ namespace Hotline.Ai.CallOut
         /// </summary>
         public EAiCallOutTaskState AiCallOutTaskState { get; set; }
 
+        /// <summary>
+        /// 批次上报结果ID
+        /// </summary>
+        public string? BatchUid { get; set; }
 
         public string CallOutTemplateId { get; set; }
         /// <summary>