|
@@ -3,11 +3,13 @@ using MapsterMapper;
|
|
|
using MediatR;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
+using Sharing.Notifications.HuiJu;
|
|
|
using Sharing.Notifications.Knowledge;
|
|
|
using Sharing.Province.Dtos;
|
|
|
using Sharing.Province.Dtos.HuiJu.Send;
|
|
|
using Sharing.Province.Dtos.XieTong.Knowledge;
|
|
|
using Sharing.Province.Dtos.XieTong.Send;
|
|
|
+using Sharing.Province.HuiJu.Send;
|
|
|
using Sharing.Province.XieTong.Knowledge;
|
|
|
using Sharing.WebCore;
|
|
|
|
|
@@ -55,6 +57,8 @@ namespace Sharing.Province.Controllers
|
|
|
[AllowAnonymous]
|
|
|
public async Task<string> GetCaseResultReceive([FromBody] KnowledgeInfoSendInfo dto)
|
|
|
{
|
|
|
+ await _mediator.Publish(new OrderCreatedNotification(new SubmitCaseInfo()));
|
|
|
+
|
|
|
var data = _mapper.Map<GetKnowledgeInfoSend>(dto);
|
|
|
|
|
|
//将上报信息写入本地库
|
|
@@ -62,7 +66,7 @@ namespace Sharing.Province.Controllers
|
|
|
|
|
|
data.Id = id;
|
|
|
//信息上报
|
|
|
- _mediator.Publish(new GetKnowledgeInfoSendNotification(data));
|
|
|
+ await _mediator.Publish(new GetKnowledgeInfoSendNotification(data));
|
|
|
return id;
|
|
|
//var data = _mapper.Map<GetCaseResultReceive>(dto);
|
|
|
|