|
@@ -5,6 +5,7 @@ using Hotline.CallCenter.Calls;
|
|
|
using Hotline.Identity.Accounts;
|
|
|
using Hotline.Identity.Roles;
|
|
|
using Hotline.Orders;
|
|
|
+using Hotline.Repository.SqlSugar.Extensions;
|
|
|
using Hotline.Settings;
|
|
|
using Hotline.Share.Dtos.CallCenter;
|
|
|
using Hotline.Share.Dtos.Order;
|
|
@@ -43,7 +44,7 @@ public class DefaultCallApplicationTest : TestBase
|
|
|
inDto.CallStartTimeEnd = DateTime.Now;
|
|
|
inDto.CallStartTimeStart = "2024/10/01 00:00:00".ObjToDate();
|
|
|
|
|
|
- var items = await _defaultCallApplication.QueryCallsFixedAsync(inDto, new CancellationToken());
|
|
|
+ var items = await _defaultCallApplication.QueryCallsFixedAsync(inDto, new CancellationToken()).ToPageListWithoutTotalAsync(inDto, CancellationToken.None);
|
|
|
items.ShouldNotBeNull();
|
|
|
}
|
|
|
|
|
@@ -55,7 +56,7 @@ public class DefaultCallApplicationTest : TestBase
|
|
|
inDto.CallStartTimeStart = "2024/11/08 00:00:00".ObjToDate();
|
|
|
inDto.FromNo = "8205175";
|
|
|
|
|
|
- var items1 = await _defaultCallApplication.QueryCallsFixedAsync(inDto, new CancellationToken());
|
|
|
+ var items1 = await _defaultCallApplication.QueryCallsFixedAsync(inDto, new CancellationToken()).ToPageListWithoutTotalAsync(inDto, CancellationToken.None);
|
|
|
items1.ShouldNotBeNull();
|
|
|
foreach (var item in items1.Where(m => m.IsOrder))
|
|
|
{
|
|
@@ -67,7 +68,7 @@ public class DefaultCallApplicationTest : TestBase
|
|
|
inDto.ToNo = "13990006670";
|
|
|
inDto.FromNo = null;
|
|
|
inDto.Type = 2;
|
|
|
- var items = await _defaultCallApplication.QueryCallsFixedAsync(inDto, new CancellationToken());
|
|
|
+ var items = await _defaultCallApplication.QueryCallsFixedAsync(inDto, new CancellationToken()).ToPageListWithoutTotalAsync(inDto, CancellationToken.None);
|
|
|
items.ShouldNotBeNull();
|
|
|
items.Count().ShouldNotBe(0, "通过被叫号码查询失败");
|
|
|
foreach (var item in items.Where(m => m.IsVisit))
|