|
@@ -5,12 +5,10 @@ using MediatR;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Sharing.Application;
|
|
using Sharing.Application;
|
|
using Sharing.Notifications;
|
|
using Sharing.Notifications;
|
|
|
|
+using Sharing.Notifications.XieTong;
|
|
using Sharing.Orders;
|
|
using Sharing.Orders;
|
|
using Sharing.Province.Dtos.XieTong.Send;
|
|
using Sharing.Province.Dtos.XieTong.Send;
|
|
using Sharing.Province.XieTong.Send;
|
|
using Sharing.Province.XieTong.Send;
|
|
-using Sharing.Repository.Province.XieTong.Send;
|
|
|
|
-using Sharing.WebCore;
|
|
|
|
-using System.Threading;
|
|
|
|
|
|
|
|
namespace Sharing.Api.Controllers
|
|
namespace Sharing.Api.Controllers
|
|
{
|
|
{
|
|
@@ -61,7 +59,7 @@ namespace Sharing.Api.Controllers
|
|
// _logger.LogInformation("rec order");
|
|
// _logger.LogInformation("rec order");
|
|
// await _dataOrderRepository.AddAsync(new DataOrder(), HttpContext.RequestAborted);
|
|
// await _dataOrderRepository.AddAsync(new DataOrder(), HttpContext.RequestAborted);
|
|
|
|
|
|
- await _mediator.Publish(new OrderCreatedNotification(new DataOrder()));
|
|
|
|
|
|
+ await _mediator.Publish(new OrderCreatedNotification(new DataOrder()));
|
|
// _logger.LogInformation("publish order success!");
|
|
// _logger.LogInformation("publish order success!");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -77,7 +75,7 @@ namespace Sharing.Api.Controllers
|
|
var data = _mapper.Map<GetCaseResultReceive>(dto);
|
|
var data = _mapper.Map<GetCaseResultReceive>(dto);
|
|
|
|
|
|
//将上报信息写入本地库
|
|
//将上报信息写入本地库
|
|
- var id= await _getCaseResultReceiveRepository.AddAsync(data);
|
|
|
|
|
|
+ var id = await _getCaseResultReceiveRepository.AddAsync(data);
|
|
|
|
|
|
data.Id = id;
|
|
data.Id = id;
|
|
//信息上报
|
|
//信息上报
|