浏览代码

修复呼入总量

qinchaoyue 6 月之前
父节点
当前提交
61d44dd3a5

+ 1 - 1
src/Hotline.Api/Controllers/Bi/BiCallController.cs

@@ -112,7 +112,7 @@ public class BiCallController : BaseController
         var total = new QueryCallsDetailStatistics
         {
             Date = "合计",
-            InTotal = items.Sum(m => m.InTotal),
+            //InTotal = items.Sum(m => m.InTotal),
             NotAcceptedHang = items.Sum(m => m.NotAcceptedHang),
             InConnectionQuantity = items.Sum(m => m.InConnectionQuantity),
             InNotAnswered = items.Sum(m => m.InNotAnswered),

+ 1 - 1
src/Hotline.Application/StatisticalReport/CallReport/CallReportApplicationBase.cs

@@ -167,7 +167,7 @@ public abstract class CallReportApplicationBase : ICallReportApplication
                 .Select(p => new QueryCallsDetailStatistics
                 {
                     Date = p.CreationTime.ToString("yyyy-MM-dd"),
-                    InTotal = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In, 1, 0)),//呼入总量
+                    //InTotal = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In, 1, 0)),//呼入总量
                     InConnectionQuantity = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null, 1, 0)),//呼入接通量
                     NotAcceptedHang = SqlFunc.AggregateSum(SqlFunc.IIF(p.Duration == 0 && p.RingDuration <= noConnectByeTimes && p.RingDuration > 0 && p.Direction == ECallDirection.In, 1, 0)), //呼入队列挂断
                     InNotAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(p.Duration == 0 && p.TelNo != "0" && p.Direction == ECallDirection.In, 1, 0)), // 挂机量