|
@@ -74,6 +74,7 @@ namespace Hotline.Api.Controllers
|
|
private readonly IRepository<TelOperation> _telOperationRepository;
|
|
private readonly IRepository<TelOperation> _telOperationRepository;
|
|
private readonly IOptionsSnapshot<AppConfiguration> _appOptions;
|
|
private readonly IOptionsSnapshot<AppConfiguration> _appOptions;
|
|
private readonly IRepository<VoiceEvaluationButton> _voiceEvaluationButtonRepository;
|
|
private readonly IRepository<VoiceEvaluationButton> _voiceEvaluationButtonRepository;
|
|
|
|
+ private readonly IOrderVisitDomainService _orderVisitDomainService;
|
|
|
|
|
|
public IPPbxController(IMapper mapper, IUserDomainService userDomainService,
|
|
public IPPbxController(IMapper mapper, IUserDomainService userDomainService,
|
|
ISessionContext sessionContext, IRepository<TrCallRecord> trCallRecordRepository,
|
|
ISessionContext sessionContext, IRepository<TrCallRecord> trCallRecordRepository,
|
|
@@ -94,7 +95,8 @@ namespace Hotline.Api.Controllers
|
|
ICallTelClient callTelClient,
|
|
ICallTelClient callTelClient,
|
|
IRepository<TelOperation> telOperationRepository,
|
|
IRepository<TelOperation> telOperationRepository,
|
|
IOptionsSnapshot<AppConfiguration> appOptions,
|
|
IOptionsSnapshot<AppConfiguration> appOptions,
|
|
- IRepository<VoiceEvaluationButton> voiceEvaluationButtonRepository)
|
|
|
|
|
|
+ IRepository<VoiceEvaluationButton> voiceEvaluationButtonRepository,
|
|
|
|
+ IOrderVisitDomainService orderVisitDomainService)
|
|
{
|
|
{
|
|
_mapper = mapper;
|
|
_mapper = mapper;
|
|
_userDomainService = userDomainService;
|
|
_userDomainService = userDomainService;
|
|
@@ -125,6 +127,7 @@ namespace Hotline.Api.Controllers
|
|
_telOperationRepository = telOperationRepository;
|
|
_telOperationRepository = telOperationRepository;
|
|
_appOptions = appOptions;
|
|
_appOptions = appOptions;
|
|
_voiceEvaluationButtonRepository = voiceEvaluationButtonRepository;
|
|
_voiceEvaluationButtonRepository = voiceEvaluationButtonRepository;
|
|
|
|
+ _orderVisitDomainService = orderVisitDomainService;
|
|
}
|
|
}
|
|
|
|
|
|
#region 添添呼
|
|
#region 添添呼
|
|
@@ -708,7 +711,13 @@ namespace Hotline.Api.Controllers
|
|
{
|
|
{
|
|
var data = _mapper.Map<VoiceEvaluationButton>(dto);
|
|
var data = _mapper.Map<VoiceEvaluationButton>(dto);
|
|
await _voiceEvaluationButtonRepository.AddAsync(data, HttpContext.RequestAborted);
|
|
await _voiceEvaluationButtonRepository.AddAsync(data, HttpContext.RequestAborted);
|
|
-
|
|
|
|
|
|
+ try
|
|
|
|
+ {
|
|
|
|
+ await _orderVisitDomainService.UpdateVoiceReplyAsync(data);
|
|
|
|
+ }
|
|
|
|
+ catch (Exception)
|
|
|
|
+ {
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
#endregion
|