|
@@ -52,8 +52,9 @@ namespace Hotline.Api.Controllers
|
|
|
private readonly ISystemSettingCacheManager _systemSettingCacheManager;
|
|
|
private readonly ICallApplication _callApplication;
|
|
|
private readonly IOptionsSnapshot<CallCenterConfiguration> _callcenterOptions;
|
|
|
+ private readonly IRepository<SystemLog> _logRepository;
|
|
|
|
|
|
- public QualityController(
|
|
|
+ public QualityController(
|
|
|
ISessionContext sessionContext,
|
|
|
IMapper mapper,
|
|
|
IQualityRepository qualitey,
|
|
@@ -70,7 +71,8 @@ namespace Hotline.Api.Controllers
|
|
|
ILogger<QualityController> logger,
|
|
|
ISystemSettingCacheManager systemSettingCacheManager,
|
|
|
ICallApplication callApplication,
|
|
|
- IOptionsSnapshot<CallCenterConfiguration> callcenterOptions)
|
|
|
+ IOptionsSnapshot<CallCenterConfiguration> callcenterOptions,
|
|
|
+ IRepository<SystemLog> logRepository)
|
|
|
{
|
|
|
_sessionContext = sessionContext;
|
|
|
_mapper = mapper;
|
|
@@ -89,7 +91,8 @@ namespace Hotline.Api.Controllers
|
|
|
_systemSettingCacheManager = systemSettingCacheManager;
|
|
|
_callApplication = callApplication;
|
|
|
_callcenterOptions = callcenterOptions;
|
|
|
- }
|
|
|
+ _logRepository = logRepository;
|
|
|
+ }
|
|
|
#region 质检管理
|
|
|
/// <summary>
|
|
|
/// 删除质检
|
|
@@ -642,8 +645,10 @@ namespace Hotline.Api.Controllers
|
|
|
Request.EnableBuffering();
|
|
|
var sr = new StreamReader(Request.Body);
|
|
|
var data = await sr.ReadToEndAsync(HttpContext.RequestAborted);
|
|
|
- _logger.LogInformation(data);
|
|
|
- await _qualityApplication.AiResultAsync(dto, HttpContext.RequestAborted);
|
|
|
+ //_logger.LogInformation(data);
|
|
|
+ await _logRepository.Updateable().SetColumns( x=> new SystemLog(){ ExecuteParam = data }).Where(x => x.Id == "08dcb132-cf60-4d1f-84ae-eb0c463f2175").ExecuteCommandAsync();
|
|
|
+
|
|
|
+ await _qualityApplication.AiResultAsync(dto, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|