|
@@ -31,9 +31,6 @@ namespace Hotline.Application.StatisticalReport
|
|
|
/// <returns></returns>
|
|
|
public async Task<List<QueryCallsDetailDto>> QueryCallsDetailAsync(BiQueryCallsDto dto)
|
|
|
{
|
|
|
- if (!dto.StartTime.HasValue || !dto.EndTime.HasValue)
|
|
|
- throw UserFriendlyException.SameMessage("请选择时间!");
|
|
|
- dto.EndTime = dto.EndTime.Value.AddDays(1).AddSeconds(-1);
|
|
|
//超时接通量
|
|
|
int CallInOverConnRingTime = int.Parse(_systemSettingCacheManager.GetSetting(SettingConstants.CallInOverConnRingTime)?.SettingValue[0]);
|
|
|
//坐席超时挂断时间
|
|
@@ -67,6 +64,7 @@ namespace Hotline.Application.StatisticalReport
|
|
|
OutTotal = SqlFunc.AggregateSum(SqlFunc.IIF(p.CallDirection == ECallDirection.Out, 1, 0)),//呼出总量
|
|
|
OutConnectionQuantity = SqlFunc.AggregateSum(SqlFunc.IIF(p.OnState == EOnState.On && p.CallDirection == ECallDirection.Out && p.AnsweredTime != null, 1, 0))
|
|
|
})
|
|
|
+ .OrderBy(p => p.Date)
|
|
|
.ToListAsync();
|
|
|
|
|
|
return callData;
|