|
@@ -1,5 +1,7 @@
|
|
|
-using DataSharing.FwDataExchange;
|
|
|
+using DataSharing.CityStateDataExchange;
|
|
|
+using DataSharing.FwDataExchange;
|
|
|
using DataSharing.HotlineWeb;
|
|
|
+using DataSharing.Police110.DaoShu110;
|
|
|
using DataSharing.Province;
|
|
|
using DataSharing.Province.SendTask;
|
|
|
using DataSharing.Province.SendTask.ProvinceOther;
|
|
@@ -18,6 +20,8 @@ using DataSharing.Share.Dtos.HotlineSetting;
|
|
|
using DataSharing.Share.Dtos.HotlineWeb;
|
|
|
using DataSharing.Share.Enums;
|
|
|
using DataSharing.Share.Requests;
|
|
|
+using DataSharing.YiBin.ConvergenceMedia;
|
|
|
+using DataSharing.YiBin.Enterprise;
|
|
|
using DotNetCore.CAP;
|
|
|
using Hotline.Share.Dtos;
|
|
|
using Hotline.Share.Dtos.Order;
|
|
@@ -26,6 +30,7 @@ using MediatR;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using SqlSugar;
|
|
|
+using StackExchange.Redis;
|
|
|
using System.Security.Cryptography;
|
|
|
using System.Text;
|
|
|
using XC.RSAUtil;
|
|
@@ -41,40 +46,6 @@ namespace DataSharing.Host.Controllers
|
|
|
public class HotlineWebController : BaseController
|
|
|
{
|
|
|
#region 注入
|
|
|
- private readonly IMapper _mapper;
|
|
|
- private readonly IMediator _mediator;
|
|
|
- private readonly ICapPublisher _capPublisher;
|
|
|
- private readonly IRepository<DsOrderSend> _dsOrderSendRepository;
|
|
|
- private readonly IRepository<DsTelCall> _dsTelCallRepository;
|
|
|
- private readonly IRepository<ConfigurationInformation> _configurationInformationRepository;
|
|
|
- private readonly ITypedCache<ConfigurationInformationDto> _configurationInformationCache;
|
|
|
- private readonly IRepository<DsOrderVisitSend> _dsOrderVisitSendRepository;
|
|
|
- private readonly IRepository<DsKnowledgeRawData> _knowledgeRawDataRepository;
|
|
|
- private readonly IRepository<DsUserTokenInfo> _dsUserTokenInfoRepository;
|
|
|
- private readonly IRepository<DsWaitSendTaskProvinceOther> _waitSendTaskProvinceOtherRepository;
|
|
|
- private readonly IRepository<DsSendTaskProvinceOther> _sendTaskProvinceOtherRepository;
|
|
|
- private readonly IRepository<DsWaitSendTaskSubmitCaseInfo> _waitSendTaskSubmitCaseInfoRepository;
|
|
|
- private readonly IRepository<DsSendTaskSubmitCaseInfo> _sendTaskSubmitCaseInfoRepository;
|
|
|
- private readonly IRepository<DsWaitSendTaskSubmitCaseProcess> _waitSendTaskSubmitCaseProcessRepository;
|
|
|
- private readonly IRepository<DsSendTaskSubmitCaseProcess> _sendTaskSubmitCaseProcessRepository;
|
|
|
- private readonly IRepository<DsWaitSendTaskSubmitCaseRecord> _waitSendTaskSubmitCaseRecordRepository;
|
|
|
- private readonly IRepository<DsSendTaskSubmitCaseRecord> _sendTaskSubmitCaseRecordRepository;
|
|
|
- private readonly IRepository<DsWaitSendTaskSubmitCaseResult> _waitSendTaskSubmitCaseResultRepository;
|
|
|
- private readonly IRepository<DsSendTaskSubmitCaseResult> _sendTaskSubmitCaseResultRepository;
|
|
|
- private readonly IWaitSendTaskRepository _waitSendTaskRepository;
|
|
|
- private readonly IRepository<DsSendTaskDetailInfo> _sendTaskDetailInfoRepository;
|
|
|
- private readonly IRepository<DsWaitSendTaskOtherPlatforms> _waitSendTaskOtherPlatformsRepository;
|
|
|
- private readonly IRepository<DsSendTaskOtherPlatforms> _sendTaskOtherPlatformsRepository;
|
|
|
- private readonly IInitPushDataService _initPushDataService;
|
|
|
- private readonly IRepository<DsSendTask> _taskRepository;
|
|
|
- private readonly IRepository<DsSendTaskInfo> _taskInfoRepository;
|
|
|
- private readonly IRepository<DsOrder> _dsOrderRepository;
|
|
|
- private readonly IRepository<SendHotlineErrorData> _sendHotlineErrorDataRepository;
|
|
|
- private readonly FwClient _fwClient;
|
|
|
- private readonly ISharingConfigurationManager _sharingConfigurationManager;
|
|
|
- private readonly IRepository<UserOperationLog> _userOperationLogRepository;
|
|
|
- private readonly IRepository<SendFwErrorData> _sendFwErrorDataRepository;
|
|
|
- private readonly IRepository<DsGetCaseMaterialInfo> _getCaseMaterialInfoRepository;
|
|
|
private const string PublicKey = @"-----BEGIN PUBLIC KEY-----
|
|
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgw+/x6IQPkH0A4eoF63j
|
|
|
kLThsOXWyNBdcL9LATGy/G1yTHOr1RyKJB//iNug+V8DIoIHuFTlhgLHDbSqxvRW
|
|
@@ -111,44 +82,46 @@ qAsDkLg3nhCLvvyWAsDyVdNiZDL1J6ZBA3Qoi8P2xFWSApB+ryDPs3YOtiH0QZui
|
|
|
Q9PP8NTEmKqdI3WVFYqW/OlOFC6sjiscTOOn9Tc5Mrcn8ocCjAPjkhkCCVRMiJnv
|
|
|
jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
-----END RSA PRIVATE KEY-----";
|
|
|
+ private readonly IMapper _mapper;
|
|
|
+ private readonly IMediator _mediator;
|
|
|
+ private readonly ICapPublisher _capPublisher;
|
|
|
+ private readonly IRepository<DsOrderSend> _dsOrderSendRepository;
|
|
|
+ private readonly IRepository<DsTelCall> _dsTelCallRepository;
|
|
|
+ private readonly IRepository<ConfigurationInformation> _configurationInformationRepository;
|
|
|
+ private readonly ITypedCache<ConfigurationInformationDto> _configurationInformationCache;
|
|
|
+ private readonly IRepository<DsOrderVisitSend> _dsOrderVisitSendRepository;
|
|
|
+ private readonly IRepository<DsKnowledgeRawData> _knowledgeRawDataRepository;
|
|
|
+ private readonly IRepository<DsUserTokenInfo> _dsUserTokenInfoRepository;
|
|
|
+ private readonly IRepository<DsWaitSendTaskProvinceOther> _waitSendTaskProvinceOtherRepository;
|
|
|
+ private readonly IRepository<DsSendTaskProvinceOther> _sendTaskProvinceOtherRepository;
|
|
|
+ private readonly IRepository<DsWaitSendTaskSubmitCaseInfo> _waitSendTaskSubmitCaseInfoRepository;
|
|
|
+ private readonly IRepository<DsSendTaskSubmitCaseInfo> _sendTaskSubmitCaseInfoRepository;
|
|
|
+ private readonly IRepository<DsWaitSendTaskSubmitCaseProcess> _waitSendTaskSubmitCaseProcessRepository;
|
|
|
+ private readonly IRepository<DsSendTaskSubmitCaseProcess> _sendTaskSubmitCaseProcessRepository;
|
|
|
+ private readonly IRepository<DsWaitSendTaskSubmitCaseRecord> _waitSendTaskSubmitCaseRecordRepository;
|
|
|
+ private readonly IRepository<DsSendTaskSubmitCaseRecord> _sendTaskSubmitCaseRecordRepository;
|
|
|
+ private readonly IRepository<DsWaitSendTaskSubmitCaseResult> _waitSendTaskSubmitCaseResultRepository;
|
|
|
+ private readonly IRepository<DsSendTaskSubmitCaseResult> _sendTaskSubmitCaseResultRepository;
|
|
|
+ private readonly IWaitSendTaskRepository _waitSendTaskRepository;
|
|
|
+ private readonly IRepository<DsSendTaskDetailInfo> _sendTaskDetailInfoRepository;
|
|
|
+ private readonly IRepository<DsWaitSendTaskOtherPlatforms> _waitSendTaskOtherPlatformsRepository;
|
|
|
+ private readonly IRepository<DsSendTaskOtherPlatforms> _sendTaskOtherPlatformsRepository;
|
|
|
+ private readonly IInitPushDataService _initPushDataService;
|
|
|
+ private readonly IRepository<DsSendTask> _taskRepository;
|
|
|
+ private readonly IRepository<DsSendTaskInfo> _taskInfoRepository;
|
|
|
+ private readonly IRepository<DsOrder> _dsOrderRepository;
|
|
|
+ private readonly IRepository<SendHotlineErrorData> _sendHotlineErrorDataRepository;
|
|
|
+ private readonly FwClient _fwClient;
|
|
|
+ private readonly ISharingConfigurationManager _sharingConfigurationManager;
|
|
|
+ private readonly IRepository<UserOperationLog> _userOperationLogRepository;
|
|
|
+ private readonly IRepository<SendFwErrorData> _sendFwErrorDataRepository;
|
|
|
+ private readonly IRepository<DsGetCaseMaterialInfo> _getCaseMaterialInfoRepository;
|
|
|
+ private readonly IRepository<DsReceiveDataExchangeData> _dsReceiveDataExchangeDataRepository;
|
|
|
+ private readonly IRepository<DsReceiveEnterpriseData> _dsReceiveEnterpriseDataRepository;
|
|
|
+ private readonly IRepository<DsReceiveMediaData> _dsReceiveMediaDataRepository;
|
|
|
+ private readonly IRepository<DsReceivePoliceData> _dsReceivePoliceDataRepository;
|
|
|
+
|
|
|
|
|
|
- /// <summary>
|
|
|
- ///
|
|
|
- /// </summary>
|
|
|
- /// <param name="mapper"></param>
|
|
|
- /// <param name="mediator"></param>
|
|
|
- /// <param name="capPublisher"></param>
|
|
|
- /// <param name="dsOrderSendRepository"></param>
|
|
|
- /// <param name="dsTelCallRepository"></param>
|
|
|
- /// <param name="configurationInformationRepository"></param>
|
|
|
- /// <param name="configurationInformationCache"></param>
|
|
|
- /// <param name="dsOrderVisitSendRepository"></param>
|
|
|
- /// <param name="knowledgeRawDataRepository"></param>
|
|
|
- /// <param name="dsUserTokenInfoRepository"></param>
|
|
|
- /// <param name="waitSendTaskProvinceOtherRepository"></param>
|
|
|
- /// <param name="sendTaskProvinceOtherRepository"></param>
|
|
|
- /// <param name="waitSendTaskSubmitCaseInfoRepository"></param>
|
|
|
- /// <param name="sendTaskSubmitCaseInfoRepository"></param>
|
|
|
- /// <param name="waitSendTaskSubmitCaseProcessRepository"></param>
|
|
|
- /// <param name="sendTaskSubmitCaseProcessRepository"></param>
|
|
|
- /// <param name="waitSendTaskSubmitCaseRecordRepository"></param>
|
|
|
- /// <param name="sendTaskSubmitCaseRecordRepository"></param>
|
|
|
- /// <param name="waitSendTaskSubmitCaseResultRepository"></param>
|
|
|
- /// <param name="sendTaskSubmitCaseResultRepository"></param>
|
|
|
- /// <param name="waitSendTaskRepository"></param>
|
|
|
- /// <param name="sendTaskDetailInfoRepository"></param>
|
|
|
- /// <param name="waitSendTaskOtherPlatformsRepository"></param>
|
|
|
- /// <param name="sendTaskOtherPlatformsRepository"></param>
|
|
|
- /// <param name="initPushDataService"></param>
|
|
|
- /// <param name="taskRepository"></param>
|
|
|
- /// <param name="taskInfoRepository"></param>
|
|
|
- /// <param name="dsOrderRepository"></param>
|
|
|
- /// <param name="sendHotlineErrorDataRepository"></param>
|
|
|
- /// <param name="fwClient"></param>
|
|
|
- /// <param name="sharingConfigurationManager"></param>
|
|
|
- /// <param name="userOperationLogRepository"></param>
|
|
|
- /// <param name="sendFwErrorDataRepository"></param>
|
|
|
- /// <param name="getCaseMaterialInfoRepository"></param>
|
|
|
public HotlineWebController(IMapper mapper,
|
|
|
IMediator mediator,
|
|
|
ICapPublisher capPublisher,
|
|
@@ -182,7 +155,12 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
ISharingConfigurationManager sharingConfigurationManager,
|
|
|
IRepository<UserOperationLog> userOperationLogRepository,
|
|
|
IRepository<SendFwErrorData> sendFwErrorDataRepository,
|
|
|
- IRepository<DsGetCaseMaterialInfo> getCaseMaterialInfoRepository)
|
|
|
+ IRepository<DsGetCaseMaterialInfo> getCaseMaterialInfoRepository,
|
|
|
+ IRepository<DsReceiveDataExchangeData> dsReceiveDataExchangeDataRepository,
|
|
|
+ IRepository<DsReceiveEnterpriseData> dsReceiveEnterpriseDataRepository,
|
|
|
+ IRepository<DsReceiveMediaData> dsReceiveMediaDataRepository,
|
|
|
+ IRepository<DsReceivePoliceData> dsReceivePoliceDataRepository
|
|
|
+ )
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_mediator = mediator;
|
|
@@ -218,6 +196,10 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
_userOperationLogRepository = userOperationLogRepository;
|
|
|
_sendFwErrorDataRepository = sendFwErrorDataRepository;
|
|
|
_getCaseMaterialInfoRepository = getCaseMaterialInfoRepository;
|
|
|
+ _dsReceiveDataExchangeDataRepository = dsReceiveDataExchangeDataRepository;
|
|
|
+ _dsReceiveEnterpriseDataRepository = dsReceiveEnterpriseDataRepository;
|
|
|
+ _dsReceiveMediaDataRepository = dsReceiveMediaDataRepository;
|
|
|
+ _dsReceivePoliceDataRepository = dsReceivePoliceDataRepository;
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
@@ -739,7 +721,7 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
//连表查询数据
|
|
|
RefAsync<int> total = 0;
|
|
|
var items = await _waitSendTaskRepository.UnionAll(waitSendTaskProvinceOther, waitSendTaskSubmitCaseInfo, waitSendTaskSubmitCaseProcess,
|
|
|
- waitSendTaskSubmitCaseRecord, waitSendTaskSubmitCaseResult)
|
|
|
+ waitSendTaskSubmitCaseRecord, waitSendTaskSubmitCaseResult).MergeTable()
|
|
|
.OrderBy(p => p.CreationTime)
|
|
|
.ToPageListAsync(dto.PageIndex, dto.PageSize, total, HttpContext.RequestAborted);
|
|
|
|
|
@@ -1566,6 +1548,7 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ #region 省查询
|
|
|
/// <summary>
|
|
|
/// 查询附件信息
|
|
|
/// </summary>
|
|
@@ -1624,5 +1607,87 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet("get_receive_raw_data")]
|
|
|
+ [AllowAnonymous]
|
|
|
+ public async Task<PagedDto<ReceiveRawDataDto>> GetReceiveRawData([FromQuery] ReportPagedRequest dto)
|
|
|
+ {
|
|
|
+ //市州数据交换原始数据
|
|
|
+ var queryDataExchangeData = _dsReceiveDataExchangeDataRepository.Queryable()
|
|
|
+ .Where(p => p.CreationTime >= dto.StartTime && p.CreationTime <= dto.EndTime)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.ExternalId.Contains(dto.Keyword))
|
|
|
+ .Select(p => new ReceiveRawDataDto
|
|
|
+ {
|
|
|
+ OrderNo = p.ExternalId,
|
|
|
+ RawData = p.ReceiveData,
|
|
|
+ PlatformsName = p.PlatformsName,
|
|
|
+ ServiceInterface = p.ServiceInterface,
|
|
|
+ CreationTime = p.CreationTime
|
|
|
+ })
|
|
|
+ .MergeTable();
|
|
|
+
|
|
|
+ //企业专班原始数据
|
|
|
+ var queryEnterpriseData = _dsReceiveEnterpriseDataRepository.Queryable()
|
|
|
+ .Where(p => p.CreationTime >= dto.StartTime && p.CreationTime <= dto.EndTime)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.ExternalId.Contains(dto.Keyword))
|
|
|
+ .Select(p => new ReceiveRawDataDto
|
|
|
+ {
|
|
|
+ OrderNo = p.ExternalId,
|
|
|
+ RawData = p.ReceiveData,
|
|
|
+ PlatformsName = "企业专班",
|
|
|
+ ServiceInterface = p.ServiceInterface,
|
|
|
+ CreationTime = p.CreationTime
|
|
|
+ })
|
|
|
+ .MergeTable();
|
|
|
+
|
|
|
+ //融媒体等原始数据
|
|
|
+ var queryMediaData = _dsReceiveMediaDataRepository.Queryable()
|
|
|
+ .Where(p => p.CreationTime >= dto.StartTime && p.CreationTime <= dto.EndTime)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.OrderCode.Contains(dto.Keyword))
|
|
|
+ .Select(p => new ReceiveRawDataDto
|
|
|
+ {
|
|
|
+ OrderNo = p.OrderCode,
|
|
|
+ RawData = p.ReceiveData,
|
|
|
+ PlatformsName = p.PlatformsName,
|
|
|
+ ServiceInterface = p.ServiceInterface,
|
|
|
+ CreationTime = p.CreationTime
|
|
|
+ })
|
|
|
+ .MergeTable();
|
|
|
+
|
|
|
+ //110平台
|
|
|
+ var queryPoliceData = _dsReceivePoliceDataRepository.Queryable()
|
|
|
+ .Where(p => p.CreationTime >= dto.StartTime && p.CreationTime <= dto.EndTime)
|
|
|
+ .WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.ExternalId.Contains(dto.Keyword))
|
|
|
+ .Select(p => new ReceiveRawDataDto
|
|
|
+ {
|
|
|
+ OrderNo = p.ExternalId,
|
|
|
+ RawData = p.ReceiveData,
|
|
|
+ PlatformsName = "110平台",
|
|
|
+ ServiceInterface = p.ServiceInterface,
|
|
|
+ CreationTime = p.CreationTime
|
|
|
+ })
|
|
|
+ .MergeTable();
|
|
|
+
|
|
|
+ //连表查询数据
|
|
|
+ RefAsync<int> total = 0;
|
|
|
+ var items = await _waitSendTaskRepository.UnionAll(queryDataExchangeData, queryEnterpriseData, queryMediaData, queryPoliceData).MergeTable()
|
|
|
+ .OrderBy(p => p.CreationTime)
|
|
|
+ .ToPageListAsync(dto.PageIndex, dto.PageSize, total, HttpContext.RequestAborted);
|
|
|
+ if (items != null)
|
|
|
+ {
|
|
|
+ foreach (var item in items)
|
|
|
+ {
|
|
|
+ item.RawData = System.Text.RegularExpressions.Regex.Unescape(item.RawData);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return new PagedDto<ReceiveRawDataDto>(total, items);
|
|
|
+ }
|
|
|
}
|
|
|
}
|