|
@@ -126,15 +126,12 @@ public class TelDomainService : ITelDomainService, IScopeDependency
|
|
|
throw new UserFriendlyException($"无效分机休息编号, telRestId: {id}", "无效分机休息编号");
|
|
|
|
|
|
//await _deviceManager.TelRestAsync(telRest.TelNo, cancellationToken);
|
|
|
-
|
|
|
-
|
|
|
- telRest.ApplyStatus = ETelRestApplyStatus.Resting;
|
|
|
-
|
|
|
- await _telRestRepository.UpdateAsync(telRest, cancellationToken);
|
|
|
|
|
|
if (_options.Value.CallCenterType!= "WeiErXin")
|
|
|
{
|
|
|
telRest.StartTime = DateTime.Now;
|
|
|
+ telRest.ApplyStatus = ETelRestApplyStatus.Resting;
|
|
|
+ await _telRestRepository.UpdateAsync(telRest, cancellationToken);
|
|
|
#region 处理设备
|
|
|
var tel = _telCacheManager.GetTel(telRest.TelNo);
|
|
|
foreach (var group in tel.Groups)
|