CallReportApplicationBase.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. using Hotline.Caching.Interfaces;
  2. using Hotline.Repository.SqlSugar.Extensions;
  3. using Hotline.CallCenter.Calls;
  4. using Hotline.Repository.SqlSugar.CallCenter;
  5. using Hotline.Settings;
  6. using Hotline.Share.Dtos.CallCenter;
  7. using Hotline.Share.Dtos.TrCallCenter;
  8. using Hotline.Share.Enums.CallCenter;
  9. using Hotline.Share.Requests;
  10. using SqlSugar;
  11. using XF.Domain.Exceptions;
  12. using Hotline.Orders;
  13. using Hotline.Share.Enums.User;
  14. using Hotline.Users;
  15. using XF.Domain.Repository;
  16. using Hotline.CallCenter.Tels;
  17. using Hotline.Share.Dtos;
  18. using Hotline.Share.Tools;
  19. using JiebaNet.Segmenter.Common;
  20. using XingTang.Sdk;
  21. using Mapster;
  22. namespace Hotline.Application.StatisticalReport.CallReport;
  23. public abstract class CallReportApplicationBase : ICallReportApplication
  24. {
  25. private readonly ISystemSettingCacheManager _systemSettingCacheManager;
  26. private readonly ISystemDicDataCacheManager _systemDicDataCacheManager;
  27. private readonly ICallNativeRepository _callNativeRepository;
  28. private readonly IRepository<User> _userRepository;
  29. private readonly IRepository<Work> _workRepository;
  30. private readonly IRepository<TelRest> _telRestRepository;
  31. protected CallReportApplicationBase(ISystemSettingCacheManager systemSettingCacheManager, ICallNativeRepository callNativeRepository, IRepository<User> userRepository, IRepository<Work> workRepository, IRepository<TelRest> telRestRepository, ISystemDicDataCacheManager systemDicDataCacheManager)
  32. {
  33. _systemSettingCacheManager = systemSettingCacheManager;
  34. _callNativeRepository = callNativeRepository;
  35. _userRepository = userRepository;
  36. _workRepository = workRepository;
  37. _telRestRepository = telRestRepository;
  38. _systemDicDataCacheManager = systemDicDataCacheManager;
  39. }
  40. public virtual async Task<List<CallHotLineDto>> GetCallHotLineListAsync(BiQueryGateWayDto dto, CancellationToken requestAborted)
  41. {
  42. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  43. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  44. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  45. int ringTimes = _systemSettingCacheManager.RingTimes;
  46. var hotlines = _systemDicDataCacheManager.CallForwardingSource.Select(m => m.DicDataValue).ToList();
  47. return await _callNativeRepository.GetCallHotLineListAsync(dto, noConnectByeTimes, effectiveTimes, connectByeTimes, ringTimes, hotlines);
  48. }
  49. public virtual async Task<List<TrCallHourDto>> GetCallHourListAsync(BiQueryHourCallDto dto, CancellationToken requestAborted)
  50. {
  51. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  52. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  53. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  54. return await _callNativeRepository.GetCallHourList(dto.StartTime, dto.EndTime, noConnectByeTimes, effectiveTimes, connectByeTimes, dto.Source);
  55. }
  56. public virtual async Task<TotalData<BiSeatSwitchDto>> GetCallListAsync(QueryCallListDto dto, CancellationToken requestAborted)
  57. {
  58. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  59. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  60. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  61. return await _callNativeRepository.GetCallList(dto, noConnectByeTimes, effectiveTimes, connectByeTimes);
  62. }
  63. public virtual async Task<List<QueryCallDateStatisticsDetailResp>> QueryCallDateStatisticsDetail(QueryCallDateStatisticsDetailDto dto)
  64. {
  65. throw new NotImplementedException();
  66. }
  67. public virtual async Task<List<BiCallDto>> QueryCallsAsync(BiQueryCallsDto dto, CancellationToken cancellationToken)
  68. {
  69. return await _callNativeRepository.GetQueryCalls(dto.StartTime.Value, dto.EndTime.Value, dto.Line);
  70. }
  71. /// <summary>
  72. /// 话务日期明细
  73. /// </summary>
  74. /// <param name="dto"></param>
  75. /// <returns></returns>
  76. public virtual async Task<List<QueryCallsDetailDto>> QueryCallsDetailAsync(BiQueryCallsDto dto)
  77. {
  78. //超时接通量
  79. int CallInOverConnRingTime = _systemSettingCacheManager.CallInOverConnRingTime;
  80. //坐席超时挂断时间
  81. int SeatChaoTime = _systemSettingCacheManager.SeatChaoTime;
  82. //未接秒挂时间
  83. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  84. //呼入有效时间
  85. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  86. //接通秒挂时间
  87. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  88. var callData = await _callNativeRepository.Queryable()
  89. .Where(p => p.BeginIvrTime >= dto.StartTime && p.BeginIvrTime <= dto.EndTime && p.CallState != ECallState.Invalid)
  90. .WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.ToNo == dto.Keyword)
  91. .GroupBy(p => p.BeginIvrTime.Value.ToString("yyyy-MM-dd"))
  92. .Select(p => new QueryCallsDetailDto
  93. {
  94. Date = p.BeginIvrTime.Value.ToString("yyyy-MM-dd"),
  95. InTotal = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In, 1, 0)),//呼入总量
  96. InConnectionQuantity = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null, 1, 0)),//呼入接通量
  97. NotAcceptedHang = SqlFunc.AggregateSum(SqlFunc.IIF(p.RingDuration <= noConnectByeTimes && p.RingDuration > 0 && p.Direction == ECallDirection.In, 1, 0)), //未接通秒挂
  98. TotalDurationIncomingCalls = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null, p.Duration, 0)), //呼入总时长
  99. InAvailableAnswer = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null && p.Duration >= effectiveTimes, 1, 0)),//有效接通量
  100. InHangupImmediateWhenAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.Duration > 0 && p.Duration <= connectByeTimes, 1, 0)), //呼入接通秒挂
  101. TimeoutConnection = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null && p.RingDuration >= CallInOverConnRingTime, 1, 0)),//超时接通量
  102. TimeoutSuspension = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null && p.Duration >= SeatChaoTime, 1, 0)),//超时挂断量
  103. QueueByeCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.CallState == ECallState.NotAcceptedHang, 1, 0)), //队列挂断
  104. IvrByeCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.CallState == ECallState.IVRNoAccept, 1, 0)), //IVR挂断
  105. OutTotal = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.Out, 1, 0)),//呼出总量
  106. OutConnectionQuantity = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.Out && p.AnsweredTime != null, 1, 0))
  107. })
  108. .OrderBy(p => p.Date)
  109. .ToListAsync();
  110. return callData;
  111. }
  112. /// <summary>
  113. /// 话务日期明细-呼入总量/接通总量
  114. /// </summary>
  115. /// <param name="dto"></param>
  116. /// <returns></returns>
  117. public virtual async Task<(int, List<CallRecordOutDto>)> QueryCallsDetailInTotalAsync(BiQueryCallsDto dto, bool isAll)
  118. {
  119. var recordPrefix = _systemSettingCacheManager.RecordPrefix;
  120. var query = _callNativeRepository.Queryable(includeDeleted: true)
  121. .LeftJoin<Order>((p, o) => p.Id == o.CallId)
  122. .Where((p, o) => p.BeginIvrTime >= dto.StartTime && p.BeginIvrTime <= dto.EndTime && p.Direction == ECallDirection.In && p.CallState != ECallState.Invalid)
  123. .WhereIF(dto.TypeCode == "2", (p, o) => p.AnsweredTime != null)
  124. .WhereIF(!string.IsNullOrEmpty(dto.Keyword), (p, o) => p.TelNo == dto.Keyword)
  125. .OrderByDescending((p, o) => p.BeginIvrTime)
  126. .Select((p, o) => new CallRecordOutDto
  127. {
  128. OtherAccept = p.Id,
  129. OrderId = o.Id,
  130. OrderNo = o.No,
  131. OrderTitle = o.Title,
  132. Cdpn = p.ToNo,
  133. Cpn = p.FromNo,
  134. RecordingFileUrl = recordPrefix + p.AudioFile,
  135. RecordingFileName = p.AudioFile,
  136. RecordingBaseAddress = recordPrefix,
  137. RecordingAbsolutePath = p.AudioFile
  138. }, true);
  139. if (isAll)
  140. {
  141. return (0, await query.ToListAsync());
  142. }
  143. return await query.ToPagedListAsync(dto.PageIndex, dto.PageSize);
  144. }
  145. public virtual async Task<List<QueryCallsDetailStatistics>> QueryCallsDetailStatisticsAsync(StartEndTimeDto dto, CancellationToken cancellationToken)
  146. {
  147. //超时接通量
  148. int CallInOverConnRingTime = _systemSettingCacheManager.CallInOverConnRingTime;
  149. //坐席超时挂断时间
  150. int SeatChaoTime = _systemSettingCacheManager.SeatChaoTime;
  151. //未接秒挂时间
  152. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  153. //呼入有效时间
  154. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  155. //接通秒挂时间
  156. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  157. var callData = await _callNativeRepository.Queryable()
  158. .Where(p => p.BeginIvrTime >= dto.StartTime && p.BeginIvrTime <= dto.EndTime && p.CallState != ECallState.Invalid)
  159. .GroupBy(p => p.BeginIvrTime.Value.ToString("yyyy-MM-dd"))
  160. .Select(p => new QueryCallsDetailStatistics
  161. {
  162. Date = p.BeginIvrTime.Value.ToString("yyyy-MM-dd"),
  163. //InTotal = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In, 1, 0)),//呼入总量
  164. InConnectionQuantity = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.AnsweredTime != null, 1, 0)),//呼入接通量
  165. NotAcceptedHang = SqlFunc.AggregateSum(SqlFunc.IIF(p.CallState == ECallState.NotAcceptedHang && p.Direction == ECallDirection.In, 1, 0)), //呼入队列挂断
  166. InNotAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(p.Duration == 0 && p.TelNo != "0" && p.Direction == ECallDirection.In, 1, 0)), // 挂机量
  167. IvrByeCount = SqlFunc.AggregateSum(SqlFunc.IIF(p.Direction == ECallDirection.In && p.CallState == ECallState.IVRNoAccept && p.AnsweredTime == null, 1, 0)), //IVR挂断
  168. OutConnectionQuantity = SqlFunc.AggregateSum(SqlFunc.IIF(p.AnsweredTime != null && p.Direction == ECallDirection.Out, 1, 0)), // 呼出接通量
  169. OutNotAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(p.AnsweredTime == null && p.Direction == ECallDirection.Out, 1, 0)), // 呼出未接量
  170. })
  171. .OrderBy(p => p.Date)
  172. .ToListAsync(cancellationToken);
  173. return callData;
  174. }
  175. public virtual async Task<List<QueryCallsDetailDto>> QueryCallsHourDetailAsync(BiQueryCallsDto dto, CancellationToken cancellationToken)
  176. {
  177. //超时接通量
  178. int CallInOverConnRingTime = _systemSettingCacheManager.CallInOverConnRingTime;
  179. //坐席超时挂断时间
  180. int SeatChaoTime = _systemSettingCacheManager.SeatChaoTime;
  181. //未接秒挂时间
  182. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  183. //呼入有效时间
  184. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  185. //接通秒挂时间
  186. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  187. return await _callNativeRepository.QueryCallsHourDetail(dto.StartTime.Value, dto.EndTime.Value, noConnectByeTimes, effectiveTimes, connectByeTimes, CallInOverConnRingTime, SeatChaoTime, dto.Line);
  188. }
  189. public virtual async Task<(int, List<QueryCallsStatisticsDetailOutDto>)> QueryCallsStatisticsDetailAsync(QueryCallsStatisticsDetailInDto dto, CancellationToken cancellationToken)
  190. {
  191. dto.FieldName ??= string.Empty;
  192. dto.FieldName = dto.FieldName.ToLower();
  193. //超时接通量
  194. int CallInOverConnRingTime = _systemSettingCacheManager.CallInOverConnRingTime;
  195. //坐席超时挂断时间
  196. int SeatChaoTime = _systemSettingCacheManager.SeatChaoTime;
  197. //未接秒挂时间
  198. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  199. //呼入有效时间
  200. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  201. //接通秒挂时间
  202. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  203. var query = _callNativeRepository.Queryable(includeDeleted: true)
  204. .LeftJoin<Order>((c, o) => c.Id == o.CallId)
  205. .Where((c, o) => c.CallState != ECallState.Invalid)
  206. .WhereIF(dto.OrderNo.NotNullOrEmpty(), (c, o) => o.No == dto.OrderNo)
  207. .WhereIF(dto.FromNo.NotNullOrEmpty(), (c, o) => c.FromNo == dto.FromNo)
  208. .WhereIF(dto.ToNo.NotNullOrEmpty(), (c, o) => c.ToNo == dto.ToNo)
  209. .WhereIF(dto.TelNo.NotNullOrEmpty(), (c, o) => c.TelNo == dto.TelNo)
  210. .WhereIF(dto.EndBy.IsNotNull(), (c, o) => c.EndBy == dto.EndBy)
  211. .Where((c, o) => c.BeginIvrTime >= dto.StartTime && c.BeginIvrTime <= dto.EndTime);
  212. if (dto.FieldName == "intotal") // 呼入总量
  213. query = query.Where((c, o) => c.Direction == ECallDirection.In);
  214. if (dto.FieldName == "inconnectionquantity") // 呼入接通
  215. query = query.Where((c, o) => c.Direction == ECallDirection.In && c.AnsweredTime != null);
  216. if (dto.FieldName == "innotanswered") // 挂机量
  217. query = query.Where((c, o) => c.Direction == ECallDirection.In && c.Duration ==0 && c.TelNo != "0");
  218. if (dto.FieldName == "notacceptedhang") // 呼入队列挂断
  219. query = query.Where((c, o) => c.Duration == 0 && c.RingDuration <= noConnectByeTimes && c.RingDuration > 0 && c.Direction == ECallDirection.In);
  220. if (dto.FieldName == "ivrbyecount") // 呼入IVR挂断
  221. query = query.Where((c, o) => c.Direction == ECallDirection.In && c.BeginIvrTime.HasValue && !c.BeginQueueTime.HasValue && !c.BeginRingTime.HasValue && c.AnsweredTime == null);
  222. if (dto.FieldName == "outconnectionquantity") // 呼出接通量
  223. query = query.Where((c, o) => c.AnsweredTime != null && c.Direction == ECallDirection.Out);
  224. if (dto.FieldName == "outnotanswered") // 呼出未接通
  225. query = query.Where((c, o) => c.AnsweredTime == null && c.Direction == ECallDirection.Out);
  226. return await query
  227. .Select<QueryCallsStatisticsDetailOutDto>()
  228. .ToPagedListAsync(dto.PageIndex, dto.PageSize, cancellationToken);
  229. }
  230. public virtual Task<List<QueryEnterpriseCallDateStatisticsDetailResp>> QueryEnterpriseCallDateStatisticsDetail(QueryCallDateStatisticsDetailDto dto)
  231. {
  232. throw new NotImplementedException();
  233. }
  234. public virtual Task<List<QueryPersonCallDateStatisticsDetailResp>> QueryPersonCallDateStatisticsDetail(QueryCallDateStatisticsDetailDto dto)
  235. {
  236. throw new NotImplementedException();
  237. }
  238. /// <summary>
  239. /// 呼出话务统计明细
  240. /// </summary>
  241. /// <param name="dto"></param>
  242. /// <returns></returns>
  243. public virtual Task<List<QueryCallOutDateStatisticsDetailResp>> QueryCallOutDateStatisticsDetail(QueryCallDateStatisticsDetailDto dto, List<string> enterpriseTels)
  244. {
  245. throw new NotImplementedException();
  246. }
  247. /// <summary>
  248. /// 坐席话务统计分析
  249. /// </summary>
  250. /// <param name="dto"></param>
  251. /// <returns></returns>
  252. public virtual async Task<List<BiSeatCallsDto>> QuerySeatCallAsync(ReportRequiredPagedRequest dto, CancellationToken cancellationToken)
  253. {
  254. int noConnectByeTimes = _systemSettingCacheManager.NoConnectByeTimes;
  255. int effectiveTimes = _systemSettingCacheManager.EffectiveTimes;
  256. int connectByeTimes = _systemSettingCacheManager.ConnectByeTimes;
  257. var list = await _userRepository.Queryable()
  258. .LeftJoin<CallNative>((u, c) => u.Id == c.UserId)
  259. .Where((u, c) => c.CallState != ECallState.Invalid)
  260. .Where(u => !u.IsDeleted && u.UserType == EUserType.Seat)
  261. .Where((u, c) => c.BeginIvrTime >= dto.StartTime)
  262. .Where((u, c) => c.BeginIvrTime <= dto.EndTime)
  263. .GroupBy((u, c) => new { c.UserName, c.UserId })
  264. .Select((u, c) => new BiSeatCallsDto
  265. {
  266. Name = c.UserName,
  267. UserId = c.UserId,
  268. InTotal = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.In, 1, 0)),
  269. OutTotal = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.Out, 1, 0)),
  270. InAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.In && c.AnsweredTime != null, 1, 0)), // 呼入接通量
  271. OutAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.Out && c.AnsweredTime != null, 1, 0)), // 呼出接通量
  272. InHangupImmediate = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.In && c.AnsweredTime == null && c.RingDuration < noConnectByeTimes, 1, 0)), // 呼入秒挂
  273. InHanguped = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.In && c.AnsweredTime == null && c.RingDuration >= noConnectByeTimes, 1, 0)), //呼入未接
  274. InDurationAvg = SqlFunc.Ceil(SqlFunc.AggregateAvg(SqlFunc.IIF(c.Direction == ECallDirection.In && c.AnsweredTime != null, c.Duration, 0))), // 呼入平均时长
  275. OutDurationAvg = SqlFunc.Ceil(SqlFunc.AggregateAvg(SqlFunc.IIF(c.Direction == ECallDirection.Out && c.AnsweredTime != null, c.Duration, 0))), // 呼出平均时长
  276. InAvailableAnswer = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.In && c.AnsweredTime != null && c.Duration >= effectiveTimes, 1, 0)), // 有效接通量
  277. InHangupImmediateWhenAnswered = SqlFunc.AggregateSum(SqlFunc.IIF(c.Direction == ECallDirection.In && c.AnsweredTime != null && c.Duration < connectByeTimes, 1, 0)), // 呼入接通秒挂
  278. })
  279. .MergeTable()
  280. .ToListAsync();
  281. list.ForEach(d =>
  282. {
  283. d.LoginDuration = _workRepository.Queryable().Where(q => q.UserId == d.UserId && q.CreationTime >= dto.StartTime && q.CreationTime <= dto.EndTime).Sum(q => q.WorkingDuration);
  284. if (d.LoginDuration != null)
  285. {
  286. d.LoginDuration = Math.Round(d.LoginDuration.Value, digits: 2);
  287. }
  288. d.RestDuration = _telRestRepository.Queryable().Where(q => q.UserId == d.UserId && q.CreationTime >= dto.StartTime && q.CreationTime <= dto.EndTime).Sum(q => q.RestDuration);
  289. d.RestDuration = Math.Round(d.RestDuration, digits: 2);
  290. });
  291. return list;
  292. }
  293. public virtual async Task<(int, List<BiSeatSwitchDto>)> QuerySeatSwitchAsync(QuerySeatSwitchRequest dto, CancellationToken cancellationToken)
  294. {
  295. return await _callNativeRepository.Queryable()
  296. .Where(x => !string.IsNullOrEmpty(x.AgentTransferNumber) && x.CallState != ECallState.Invalid)
  297. .WhereIF(!string.IsNullOrEmpty(dto.UserName), x => x.UserName.Contains(dto.UserName))
  298. .WhereIF(!string.IsNullOrEmpty(dto.CDPN), x => x.ToNo.Contains(dto.CDPN))
  299. .Where(x => x.BeginIvrTime >= dto.StartTime)
  300. .Where(x => x.BeginIvrTime <= dto.EndTime)
  301. .Select(x => new BiSeatSwitchDto
  302. {
  303. UserId = x.UserId,
  304. CPN = x.FromNo,
  305. CDPN = x.ToNo,
  306. CreatedTime = x.CreationTime,
  307. TelNo = x.TelNo,
  308. UserName = x.UserName,
  309. })
  310. .OrderByDescending(x => x.CreatedTime)
  311. .ToPagedListAsync(dto.PageIndex, dto.PageSize, cancellationToken);
  312. }
  313. public virtual Task<List<QuerySeatMonthCallResp>> QuerySeatMonthCall(QuerySeatMonthCallRequest dto)
  314. {
  315. throw new NotImplementedException();
  316. }
  317. public virtual ISugarQueryable<QuerySeatMonthCallDetailResp> QuerySeatMonthCallDetail(QuerySeatMonthCallDetailRequest dto)
  318. {
  319. throw new NotImplementedException();
  320. }
  321. }