Browse Source

Merge branch 'feature/task_349' into dev

qinchaoyue 6 months ago
parent
commit
d73732ee31

+ 13 - 0
src/Hotline.Api/Controllers/Bi/BiCallController.cs

@@ -163,6 +163,19 @@ public class BiCallController : BaseController
         => (await _callReportApplication.QueryCallsStatisticsDetailAsync(dto, HttpContext.RequestAborted))
         => (await _callReportApplication.QueryCallsStatisticsDetailAsync(dto, HttpContext.RequestAborted))
             .ToPaged();
             .ToPaged();
 
 
+    /// <summary>
+    /// 话务日期统计详情页面基础数据
+    /// </summary>
+    /// <param name="dto"></param>
+    /// <returns></returns>
+    [HttpGet("query_calls_statistics_detail/base-data")]
+    public async Task<Dictionary<string, dynamic>> QueryCallsStatisticsDetailBaseData()
+    {
+        return _baseDataApplication
+            .EndBy()
+            .Build();
+    }
+
     /// <summary>
     /// <summary>
     /// 话务日期明细
     /// 话务日期明细
     /// </summary>
     /// </summary>

+ 8 - 0
src/Hotline.Application/Systems/BaseDataApplication.cs

@@ -1,6 +1,7 @@
 using Hotline.Caching.Interfaces;
 using Hotline.Caching.Interfaces;
 using Hotline.Settings;
 using Hotline.Settings;
 using Hotline.Share.Dtos.Order;
 using Hotline.Share.Dtos.Order;
+using Hotline.Share.Enums.CallCenter;
 using Hotline.Share.Enums.Order;
 using Hotline.Share.Enums.Order;
 using System;
 using System;
 using System.Collections.Concurrent;
 using System.Collections.Concurrent;
@@ -24,6 +25,8 @@ public class BaseDataApplication : IScopeDependency
     }
     }
 
 
     private ConcurrentDictionary<string, dynamic> _baseData = new ConcurrentDictionary<string, dynamic>();
     private ConcurrentDictionary<string, dynamic> _baseData = new ConcurrentDictionary<string, dynamic>();
+
+
     //private ConcurrentDictionary<string, int> _baseType = new ConcurrentDictionary<string, int>();
     //private ConcurrentDictionary<string, int> _baseType = new ConcurrentDictionary<string, int>();
     //private ConcurrentDictionary<string, int> _enumType = new ConcurrentDictionary<string, int>();
     //private ConcurrentDictionary<string, int> _enumType = new ConcurrentDictionary<string, int>();
     #region 内部方法
     #region 内部方法
@@ -111,4 +114,9 @@ public class BaseDataApplication : IScopeDependency
         Add(SysDicTypeConsts.CallForwardingType);
         Add(SysDicTypeConsts.CallForwardingType);
         return this;
         return this;
     }
     }
+    public BaseDataApplication EndBy()
+    {
+        Add(typeof(EEndBy));
+        return this;
+    }
 }
 }