|
@@ -10,12 +10,15 @@ using DataSharing.Share.Dtos.Police110.DaoShu110;
|
|
|
using DataSharing.Share.Dtos.Police110.DCJT110;
|
|
|
using DataSharing.Share.Enums;
|
|
|
using DotNetCore.CAP;
|
|
|
+using Google.Protobuf.WellKnownTypes;
|
|
|
using Hotline.Share.Dtos.DataSharing.PusherHotlineDto;
|
|
|
+using Hotline.Share.Dtos.Order;
|
|
|
using Hotline.Share.Enums.Order;
|
|
|
using MapsterMapper;
|
|
|
using MediatR;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
+using Microsoft.OpenApi.Models;
|
|
|
using Newtonsoft.Json;
|
|
|
using Newtonsoft.Json.Converters;
|
|
|
using System.Net;
|
|
@@ -44,6 +47,7 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
private readonly FwClient _fwClient;
|
|
|
private readonly ISharingConfigurationManager _sharingConfigurationManager;
|
|
|
private readonly IRepository<SendHotlineErrorData> _sendHotlineErrorDataRepository;
|
|
|
+ private readonly IRepository<DsReceiveHandleData> _dsReceiveHandleDataRepository;
|
|
|
|
|
|
/// <summary>
|
|
|
///
|
|
@@ -59,6 +63,7 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
/// <param name="fwClient"></param>
|
|
|
/// <param name="sharingConfigurationManager"></param>
|
|
|
/// <param name="sendHotlineErrorDataRepository"></param>
|
|
|
+ /// <param name="dsReceiveHandleDataRepository"></param>
|
|
|
public PoliceDCJTController(IMapper mapper,
|
|
|
ICapPublisher capPublisher,
|
|
|
IMediator mediator,
|
|
@@ -69,7 +74,8 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
IRepository<DsReceivePoliceData> dsReceivePoliceDataRepository,
|
|
|
FwClient fwClient,
|
|
|
ISharingConfigurationManager sharingConfigurationManager,
|
|
|
- IRepository<SendHotlineErrorData> sendHotlineErrorDataRepository)
|
|
|
+ IRepository<SendHotlineErrorData> sendHotlineErrorDataRepository,
|
|
|
+ IRepository<DsReceiveHandleData> dsReceiveHandleDataRepository)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_capPublisher = capPublisher;
|
|
@@ -82,6 +88,7 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
_fwClient = fwClient;
|
|
|
_sharingConfigurationManager = sharingConfigurationManager;
|
|
|
_sendHotlineErrorDataRepository = sendHotlineErrorDataRepository;
|
|
|
+ _dsReceiveHandleDataRepository = dsReceiveHandleDataRepository;
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
@@ -283,6 +290,7 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
chainDeal = System.Text.Json.JsonSerializer.Deserialize<ChainDeal_DCJT>(jsonRes);
|
|
|
|
|
|
await InitRawData("service/api/dcjt/110To12345/chainDeal", base64String, jsonRes, chainDeal?.AlarmReceiptNumber);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
#region 数据验证
|
|
@@ -706,6 +714,39 @@ namespace DataSharing.Host.Controllers.Police110
|
|
|
if (orderData is null)
|
|
|
return;
|
|
|
|
|
|
+ //写入对外展示表数据
|
|
|
+ DsReceiveHandleData dsReceive = new()
|
|
|
+ {
|
|
|
+ OrderNo = orderData.OrderNo,
|
|
|
+ Source = "110平台",
|
|
|
+ PlatformsName = "110平台",
|
|
|
+ ReceiveData = System.Text.Json.JsonSerializer.Serialize(policeReceiveChainDealDs)
|
|
|
+ };
|
|
|
+ if (policeReceiveChainDealDs.DisposalType == "1")//正常办理
|
|
|
+ {
|
|
|
+ dsReceive.OperationType = "110推送办理结果";
|
|
|
+ dsReceive.Opinion = policeReceiveChainDealDs.DisposalSituation;
|
|
|
+ }
|
|
|
+ else if (policeReceiveChainDealDs.DisposalType == "2")//退回
|
|
|
+ {
|
|
|
+ dsReceive.OperationType = "110退回";
|
|
|
+ dsReceive.Opinion = policeReceiveChainDealDs.ReturnOpinion;
|
|
|
+ }
|
|
|
+ else if (policeReceiveChainDealDs.DisposalType == "3")//回访
|
|
|
+ {
|
|
|
+ var orgProcessingResults = policeReceiveChainDealDs.VisitResult switch
|
|
|
+ {
|
|
|
+ "1" => "非常满意",//非常满意
|
|
|
+ "2" => "满意",//满意
|
|
|
+ "3" => "不满意",//不满意
|
|
|
+ _ => "满意",
|
|
|
+ };
|
|
|
+ dsReceive.OperationType = "110回访内容";
|
|
|
+ dsReceive.Opinion = "回访时间:" + policeReceiveChainDealDs.RevisitTime + "/br回访内容:" + policeReceiveChainDealDs.VisitContent + "/br回访方式:人工回访/br满意度" + orgProcessingResults;
|
|
|
+ }
|
|
|
+
|
|
|
+ await _dsReceiveHandleDataRepository.AddAsync(dsReceive, HttpContext.RequestAborted);
|
|
|
+
|
|
|
if (policeReceiveChainDealDs.DisposalType == "1")//正常办理
|
|
|
{
|
|
|
OrderResultDto orderResultDto = new()
|