|
@@ -27,6 +27,7 @@ namespace Sharing.Api.Controllers
|
|
|
private readonly IGetCaseProcessReceiveRepository _getCaseProcessReceiveRepository;
|
|
|
private readonly IGetVisitInfoReceiveRepository _getVisitInfoReceiveRepository;
|
|
|
private readonly IGetCaseBackApplyRepository _getCaseBackApplyRepository;
|
|
|
+ private readonly IDelayCaseInfoSendRepository _delayCaseInfoSendRepository;
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -38,7 +39,8 @@ namespace Sharing.Api.Controllers
|
|
|
/// <param name="getCaseResultReceiveRepository"></param>
|
|
|
public HotlineMessageReceiveController(IDataOrderRepository dataOrderRepository, IMediator mediator, ILogger<HotlineMsgReceiver> logger, IMapper mapper
|
|
|
, IGetCaseResultReceiveRepository getCaseResultReceiveRepository, IGetCaseProcessReceiveRepository getCaseProcessReceiveRepository
|
|
|
- , IGetVisitInfoReceiveRepository getVisitInfoReceiveRepository, IGetCaseBackApplyRepository getCaseBackApplyRepository)
|
|
|
+ , IGetVisitInfoReceiveRepository getVisitInfoReceiveRepository, IGetCaseBackApplyRepository getCaseBackApplyRepository
|
|
|
+ , IDelayCaseInfoSendRepository delayCaseInfoSendRepository)
|
|
|
{
|
|
|
_dataOrderRepository = dataOrderRepository;
|
|
|
_mediator = mediator;
|
|
@@ -48,6 +50,7 @@ namespace Sharing.Api.Controllers
|
|
|
_getCaseProcessReceiveRepository = getCaseProcessReceiveRepository;
|
|
|
_getVisitInfoReceiveRepository = getVisitInfoReceiveRepository;
|
|
|
_getCaseBackApplyRepository = getCaseBackApplyRepository;
|
|
|
+ _delayCaseInfoSendRepository = delayCaseInfoSendRepository;
|
|
|
}
|
|
|
|
|
|
[NonAction]
|
|
@@ -138,5 +141,24 @@ namespace Sharing.Api.Controllers
|
|
|
//信息上报
|
|
|
await _mediator.Publish(new GetCaseBackApplyNotification(data));
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 服务工单申请延时
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [NonAction]
|
|
|
+ //[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineOrderCreated)]
|
|
|
+ public async Task DelayCaseInfoSend(DelayCaseInfoSendInfo dto)
|
|
|
+ {
|
|
|
+ var data = _mapper.Map<DelayCaseInfoSend>(dto);
|
|
|
+
|
|
|
+ //将上报信息写入本地库
|
|
|
+ var id = await _delayCaseInfoSendRepository.AddAsync(data);
|
|
|
+
|
|
|
+ data.Id = id;
|
|
|
+ //信息上报
|
|
|
+ await _mediator.Publish(new DelayCaseInfoSendNotification(data));
|
|
|
+ }
|
|
|
}
|
|
|
}
|