|
@@ -185,8 +185,21 @@ namespace Hotline.Application.CallCenter
|
|
|
public override async Task<CallNative?> GetCallAsync(string callId, CancellationToken cancellationToken)
|
|
|
{
|
|
|
var call = await _trCallRecordRepository.Queryable()
|
|
|
- .FirstAsync(d => d.OtherAccept == callId, cancellationToken);
|
|
|
- return _mapper.Map<CallNative>(call);
|
|
|
+ .FirstAsync(d => d.OtherAccept == callId,cancellationToken);
|
|
|
+ return _mapper.Map<CallNative?>(call);
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 查询通话记录列表
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="callId"></param>
|
|
|
+ /// <param name="cancellationToken"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public override async Task<List<CallNative>> GetCallListAsync(string callId, CancellationToken cancellationToken)
|
|
|
+ {
|
|
|
+ var call = await _trCallRecordRepository.Queryable()
|
|
|
+ .Where(d => d.OtherAccept == callId).ToListAsync(cancellationToken);
|
|
|
+ return _mapper.Map<List<CallNative>>(call);
|
|
|
}
|
|
|
}
|
|
|
}
|