浏览代码

fixed: bi math.ceil

xf 1 年之前
父节点
当前提交
5fd3fa087e
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      src/Hotline.Api/Controllers/Bi/BiCallController.cs
  2. 1 0
      src/Hotline.Api/Controllers/OrderController.cs

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

@@ -103,8 +103,8 @@ public class BiCallController : BaseController
                   OutAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(c.CallDirection == ECallDirection.Out && c.AnsweredTime != null, 1, 0)),
                   InHangupImmediate = SqlFunc.AggregateSum(SqlFunc.IIF(c.CallDirection == ECallDirection.In && c.AnsweredTime == null && c.RingTimes < hangupSeconds, 1, 0)),
                   InHanguped = SqlFunc.AggregateSum(SqlFunc.IIF(c.CallDirection == ECallDirection.In && c.AnsweredTime == null, 1, 0)),
-                  InDurationAvg = SqlFunc.AggregateAvg(SqlFunc.IIF(c.CallDirection == ECallDirection.In && c.AnsweredTime != null, c.Duration, 0)),
-                  OutDurationAvg = SqlFunc.AggregateAvg(SqlFunc.IIF(c.CallDirection == ECallDirection.Out && c.AnsweredTime != null, c.Duration, 0)),
+                  InDurationAvg = SqlFunc.Ceil(SqlFunc.AggregateAvg(SqlFunc.IIF(c.CallDirection == ECallDirection.In && c.AnsweredTime != null, c.Duration, 0))),
+                  OutDurationAvg = SqlFunc.Ceil(SqlFunc.AggregateAvg(SqlFunc.IIF(c.CallDirection == ECallDirection.Out && c.AnsweredTime != null, c.Duration, 0))),
                   InAvailableAnswer = SqlFunc.AggregateSum(SqlFunc.IIF(c.CallDirection == ECallDirection.In && c.AnsweredTime != null && c.Duration >= hangupSeconds, 1, 0)),
                   InHangupImmediateWhenAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(c.CallDirection == ECallDirection.In && c.AnsweredTime != null && c.Duration < hangupSeconds, 1, 0)),
               })

+ 1 - 0
src/Hotline.Api/Controllers/OrderController.cs

@@ -1890,6 +1890,7 @@ public class OrderController : BaseController
         {
             if (order.SmsSended)
             {
+                _logger.LogInformation($"推送短信: orderNo: {order.No}");
                 await _pushDomainService.PushAsync(new MessageDto
                 {
                     PushBusiness = EPushBusiness.OrderAccept,