소스 검색

通话时段

田爽 1 년 전
부모
커밋
f8032b7a54
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Hotline.Repository.SqlSugar/CallCenter/TrCallRecordRepository.cs

+ 2 - 2
src/Hotline.Repository.SqlSugar/CallCenter/TrCallRecordRepository.cs

@@ -126,7 +126,7 @@ namespace Hotline.Repository.SqlSugar.CallCenter
         public async Task<object> GetCallList(DateTime beginDate, DateTime? endDate, int noConnectByeTimes, int effectiveTimes, int connectByeTimes, string type, string source ,int pageIndex, int pageSize)
         {
 	        endDate = endDate.Value.Date.AddDays(1).AddSeconds(-1);
-			var  total = 0;
+	        RefAsync<int> total = 0;
 			var res = await Db.Queryable<TrCallRecord>()
                 .Where(x => x.CreatedTime >= beginDate && x.CreatedTime <= endDate)
                 .Where(x => x.CallDirection == ECallDirection.In)
@@ -143,7 +143,7 @@ namespace Hotline.Repository.SqlSugar.CallCenter
 					CreatedTime = x.CreatedTime
 				})
                 .ToPageListAsync(pageIndex, pageSize, total);
-            return new { Data = res , Total = total};
+            return new { Data = res , Total = total.Value};
 		}
 
 		public async Task<List<CallHotLineDto>> GetCallHotLineList(DateTime beginDate, DateTime endDate,string lineNum, int noConnectByeTimes, int effectiveTimes, int connectByeTimes,int ringTims)