|
@@ -34,6 +34,8 @@ namespace Sharing.Api.Controllers
|
|
|
private readonly ISendSuperviseResultInfoRepository _sendSuperviseResultInfoRepository;
|
|
|
private readonly ISubmitCaseInfoRepository _submitCaseInfoRepository;
|
|
|
private readonly ISubmitCaseResultRepository _submitCaseResultRepository;
|
|
|
+ private readonly ISubmitCaseProcessRepository _submitCaseProcessRepository;
|
|
|
+ private readonly ISubmitVisitInfoRepository _submitVisitInfoRepository;
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -55,7 +57,8 @@ namespace Sharing.Api.Controllers
|
|
|
, IGetVisitInfoReceiveRepository getVisitInfoReceiveRepository, IGetCaseBackApplyRepository getCaseBackApplyRepository
|
|
|
, IDelayCaseInfoSendRepository delayCaseInfoSendRepository, ISendSuperviseProcessInfoRepository sendSuperviseProcessInfoRepository
|
|
|
, ISendSuperviseResultInfoRepository sendSuperviseResultInfoRepository, ISubmitCaseInfoRepository submitCaseInfoRepository
|
|
|
- , ISubmitCaseResultRepository submitCaseResultRepository)
|
|
|
+ , ISubmitCaseResultRepository submitCaseResultRepository, ISubmitCaseProcessRepository submitCaseProcessRepository
|
|
|
+ , ISubmitVisitInfoRepository submitVisitInfoRepository)
|
|
|
{
|
|
|
_dataOrderRepository = dataOrderRepository;
|
|
|
_mediator = mediator;
|
|
@@ -70,6 +73,8 @@ namespace Sharing.Api.Controllers
|
|
|
_sendSuperviseResultInfoRepository = sendSuperviseResultInfoRepository;
|
|
|
_submitCaseInfoRepository = submitCaseInfoRepository;
|
|
|
_submitCaseResultRepository = submitCaseResultRepository;
|
|
|
+ _submitCaseProcessRepository = submitCaseProcessRepository;
|
|
|
+ _submitVisitInfoRepository = submitVisitInfoRepository;
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
@@ -385,5 +390,46 @@ namespace Sharing.Api.Controllers
|
|
|
await _mediator.Publish(new SubmitCaseResultNotification(data));
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 服务工单处理过程
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [NonAction]
|
|
|
+ //[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineOrderCreated)]
|
|
|
+ public async Task SubmitCaseProcess(CaseProcess dto)
|
|
|
+ {
|
|
|
+ var data = _mapper.Map<SubmitCaseProcess>(dto);
|
|
|
+
|
|
|
+ //将上报信息写入本地库
|
|
|
+ var id = await _submitCaseProcessRepository.AddAsync(data);
|
|
|
+
|
|
|
+ data.Id = id;
|
|
|
+ //信息上报
|
|
|
+ await _mediator.Publish(new SubmitCaseProcessNotification(data));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 服务工单回访评价
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [NonAction]
|
|
|
+ //[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineOrderCreated)]
|
|
|
+ public async Task SubmitVisitInfo(VisitInfo dto)
|
|
|
+ {
|
|
|
+ var data = _mapper.Map<SubmitVisitInfo>(dto);
|
|
|
+
|
|
|
+ //将上报信息写入本地库
|
|
|
+ var id = await _submitVisitInfoRepository.AddAsync(data);
|
|
|
+
|
|
|
+ data.Id = id;
|
|
|
+ //信息上报
|
|
|
+ await _mediator.Publish(new SubmitVisitInfoNotification(data));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|