|
@@ -126,7 +126,7 @@ namespace DataSharing.Application.Receivers
|
|
|
|
|
|
foreach (var dto in dtos.SendDatas)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.AreaCode) || dto.Order.Source == ESource.ProvinceStraight)
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
//处理110退回事件
|
|
@@ -205,7 +205,7 @@ namespace DataSharing.Application.Receivers
|
|
|
//工单是省上派下来的,才能进行督办回复
|
|
|
if (dto.Order.Source == ESource.ProvinceStraight)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.AreaCode) || dto.Order.Source == ESource.ProvinceStraight)
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
var validator = new SendSuperviseProcessInfoValidator();
|
|
@@ -241,7 +241,7 @@ namespace DataSharing.Application.Receivers
|
|
|
//工单是省上派下来的,才能进行督办回复
|
|
|
if (dto.Order.Source == ESource.ProvinceStraight)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.AreaCode) || dto.Order.Source == ESource.ProvinceStraight)
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
var validator = new SendSuperviseResultInfoValidator();
|
|
@@ -276,7 +276,7 @@ namespace DataSharing.Application.Receivers
|
|
|
[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineOrderScreenApply)]
|
|
|
public async Task ScreenCaseInfoSendAsync(PublishScreenDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.AreaCode) || dto.Order.Source == ESource.ProvinceStraight)
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
//如果是省上派下来的工单,才能调发起甄别的接口
|
|
@@ -319,7 +319,7 @@ namespace DataSharing.Application.Receivers
|
|
|
[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineOrderApplyDelay)]
|
|
|
public async Task DelayCaseInfoSendAsync(PublishOrderDelayDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.AreaCode) || dto.Order.Source == ESource.ProvinceStraight)
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
var validator = new DelayCaseInfoSendInfoValidator();
|
|
@@ -495,9 +495,16 @@ namespace DataSharing.Application.Receivers
|
|
|
if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
+ if (string.IsNullOrEmpty(dto.WorkflowTrace.HandlerOrgAreaCode))
|
|
|
+ {
|
|
|
+ dto.WorkflowTrace.HandlerOrgAreaCode = dto.Order.AreaCode;
|
|
|
+ if (dto.WorkflowTrace.HandlerOrgAreaCode.Length > 6)
|
|
|
+ dto.WorkflowTrace.HandlerOrgAreaCode = dto.WorkflowTrace.HandlerOrgAreaCode.Substring(0, 6);
|
|
|
+ }
|
|
|
+
|
|
|
await SubmitCaseProcessFlowAsync(dto, cancellationToken);
|
|
|
//期满时间变更或者办理节点为话务部,重新推送数据
|
|
|
- if (dto.ExpiredTimeChanged || dto.Order.ActualHandleStepName == "话务部")
|
|
|
+ if ((dto.ExpiredTimeChanged || dto.Order.ActualHandleStepName == "话务部") && !dto.Order.IsProvince)
|
|
|
{
|
|
|
var submitCaseInfo = InitDataAsync(dto.Order);
|
|
|
var validator = new SubmitCaseInfoValidator();
|
|
@@ -556,6 +563,13 @@ namespace DataSharing.Application.Receivers
|
|
|
if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.ActualHandleOrgAreaCode))
|
|
|
+ {
|
|
|
+ dto.Order.ActualHandleOrgAreaCode = dto.Order.AreaCode;
|
|
|
+ if (dto.Order.ActualHandleOrgAreaCode.Length > 6)
|
|
|
+ dto.Order.ActualHandleOrgAreaCode = dto.Order.ActualHandleOrgAreaCode.Substring(0, 6);
|
|
|
+ }
|
|
|
+
|
|
|
//先看看需要处理工单数据不
|
|
|
SubmitCaseInfo data = new();
|
|
|
if (dto != null && dto.Order != null && !dto.Order.IsProvince)
|
|
@@ -680,7 +694,7 @@ namespace DataSharing.Application.Receivers
|
|
|
[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineCallBye)]
|
|
|
public async Task SubmitCaseRecordAsync(PublishCallRecrodDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
//验证是否需要推送未接数据
|
|
|
if (dto != null && dto.TrCallRecordDto != null && dto.TrCallRecordDto.OnState == EOnState.NoOn && dto.Order == null)
|
|
|
{
|
|
@@ -701,6 +715,9 @@ namespace DataSharing.Application.Receivers
|
|
|
else
|
|
|
data.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
+ if (data.AreaCode.Length > 6)
|
|
|
+ data.AreaCode = data.AreaCode.Substring(0, 6);
|
|
|
+
|
|
|
if (string.IsNullOrEmpty(data.CaseSerial))
|
|
|
data.CaseSerial = "";
|
|
|
|
|
@@ -747,6 +764,9 @@ namespace DataSharing.Application.Receivers
|
|
|
else
|
|
|
data.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
+ if (data.AreaCode.Length > 6)
|
|
|
+ data.AreaCode = data.AreaCode.Substring(0, 6);
|
|
|
+
|
|
|
if (string.IsNullOrEmpty(data.CaseSerial))
|
|
|
data.CaseSerial = "";
|
|
|
|
|
@@ -935,7 +955,7 @@ namespace DataSharing.Application.Receivers
|
|
|
[CapSubscribe(Hotline.Share.Mq.EventNames.HotlineOrderPublishOrder)]
|
|
|
public async Task PublishOrderAsync(PublishPublishOrderDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(dto.Order.AreaCode))
|
|
|
+ if (string.IsNullOrEmpty(dto.Order.AreaCode) || dto.Order.Source == ESource.ProvinceStraight)
|
|
|
dto.Order.AreaCode = _channelConfigurationManager.GetConfigurationCityCode().AreaCode;
|
|
|
|
|
|
//政民互动提交公开数据验证
|