|
@@ -64,7 +64,7 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
if (!string.IsNullOrEmpty(orderDto.AcceptorId))
|
|
|
registerNo = orderDto.AcceptorId.Substring(orderDto.AcceptorId.Length - 6);
|
|
|
}
|
|
|
- var Content = orderDto.Content.Length > 1900 ? orderDto.Content.Substring(0, 300) : orderDto.Content;
|
|
|
+ var Content = orderDto.Content.Length > 1900 ? orderDto.Content.Substring(0, 1900) : orderDto.Content;
|
|
|
var policeTypeCode = "01";
|
|
|
if (!string.IsNullOrEmpty(orderDto.HotspotId))
|
|
|
policeTypeCode = orderDto.HotspotId.Length > 8 ? orderDto.HotspotId.Substring(0, 7) : orderDto.HotspotId;
|
|
@@ -91,7 +91,8 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
AlarmReceptionType = "0",
|
|
|
AreaCode = orderDto.AreaCode.Substring(0, 6),
|
|
|
CallPoliceAddress = orderDto.FullAddress,
|
|
|
- OrderId = orderDto.Id
|
|
|
+ OrderId = orderDto.Id,
|
|
|
+ No = orderDto.No
|
|
|
};
|
|
|
|
|
|
policeSend.FromGender = orderDto.FromGender switch
|
|
@@ -110,37 +111,37 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
|
|
|
//这里网泸州110待推送表写入数据
|
|
|
#region 接受数据汇聚 工单基础信息
|
|
|
- var order = orderDto;
|
|
|
- var gender = "";
|
|
|
- if (order.FromGender == EGender.Female)
|
|
|
- gender = "女";
|
|
|
- if (order.FromGender == EGender.Male)
|
|
|
- gender = "男";
|
|
|
- LZ110ZBasicInfoDto basicInfoDto = new LZ110ZBasicInfoDto()
|
|
|
- {
|
|
|
- FlowID = order.Id,
|
|
|
- Code = order.No,
|
|
|
- PoliceCode = order.ExternalId,
|
|
|
- AreaName = order.AreaCode.Substring(0, 6),
|
|
|
- AddDate = order.CreationTime.ToString("yyyy/MM/dd HH:mm:ss"),
|
|
|
- FromTel = order.FromPhone,
|
|
|
- CallerName = order.FromName,
|
|
|
- Gender = gender,
|
|
|
- ContactTel = order.Contact,
|
|
|
- IDCard = order.LicenceNo,
|
|
|
- TelHome = "",
|
|
|
- Address = order.Province + order.City + order.County + order.Street,
|
|
|
- WorkUnit = "",
|
|
|
- Title = order.Title,
|
|
|
- PurTypeName = order.AcceptType,
|
|
|
- FromName = order.SourceChannel,
|
|
|
- ConTypeName = order.HotspotSpliceName,
|
|
|
- Content = order.Content,
|
|
|
- IsSecrecy = order.IsSecret == true ? "1" : "0"
|
|
|
- };
|
|
|
- var GDJCXXInfoObject = EncryptHandler.AES(basicInfoDto);
|
|
|
-
|
|
|
- await InitSendData(order.Id, order.No, "1", LZ110Defaults.InteractiveBasicInfo, JsonConvert.SerializeObject(basicInfoDto), JsonConvert.SerializeObject(GDJCXXInfoObject), cancellationToken);
|
|
|
+ //var order = orderDto;
|
|
|
+ //var gender = "";
|
|
|
+ //if (order.FromGender == EGender.Female)
|
|
|
+ // gender = "女";
|
|
|
+ //if (order.FromGender == EGender.Male)
|
|
|
+ // gender = "男";
|
|
|
+ //LZ110ZBasicInfoDto basicInfoDto = new LZ110ZBasicInfoDto()
|
|
|
+ //{
|
|
|
+ // FlowID = order.Id,
|
|
|
+ // Code = order.No,
|
|
|
+ // PoliceCode = order.ExternalId,
|
|
|
+ // AreaName = order.AreaCode.Substring(0, 6),
|
|
|
+ // AddDate = order.CreationTime.ToString("yyyy/MM/dd HH:mm:ss"),
|
|
|
+ // FromTel = order.FromPhone,
|
|
|
+ // CallerName = order.FromName,
|
|
|
+ // Gender = gender,
|
|
|
+ // ContactTel = order.Contact,
|
|
|
+ // IDCard = order.LicenceNo,
|
|
|
+ // TelHome = "",
|
|
|
+ // Address = order.Province + order.City + order.County + order.Street,
|
|
|
+ // WorkUnit = "",
|
|
|
+ // Title = order.Title,
|
|
|
+ // PurTypeName = order.AcceptType,
|
|
|
+ // FromName = order.SourceChannel,
|
|
|
+ // ConTypeName = order.HotspotSpliceName,
|
|
|
+ // Content = order.Content,
|
|
|
+ // IsSecrecy = order.IsSecret == true ? "1" : "0"
|
|
|
+ //};
|
|
|
+ //var GDJCXXInfoObject = EncryptHandler.AES(basicInfoDto);
|
|
|
+
|
|
|
+ //await InitSendData(order.Id, order.No, "1", LZ110Defaults.InteractiveBasicInfo, JsonConvert.SerializeObject(basicInfoDto), JsonConvert.SerializeObject(GDJCXXInfoObject), cancellationToken);
|
|
|
#endregion
|
|
|
|
|
|
//查询是否有此工单,如果没有新增此工单
|
|
@@ -157,107 +158,7 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
public async Task InitPoliceSendChainDealAsync(OrderFlowDto dto, CancellationToken cancellationToken)
|
|
|
{
|
|
|
var order = dto.Order;
|
|
|
- //工单流转办理
|
|
|
- //工单延期申请
|
|
|
- //工单办理结果
|
|
|
- //工单办理状态
|
|
|
var checkData = await _policeSendChainDealHndRepository.AnyAsync(p => p.AlarmReceiptNumber == order.ExternalId && p.DisposalType == "2", cancellationToken);
|
|
|
- #region 接受数据 工单流转信息
|
|
|
- var nodeName = "派单组";
|
|
|
- var nodeType = "2";
|
|
|
- if (!string.IsNullOrEmpty(order.ActualHandleOrgName) && order.ActualHandleOrgName != "001")
|
|
|
- {
|
|
|
- if (order.ActualHandleOrgName.Length == 6)
|
|
|
- {
|
|
|
- nodeName = "一级部门受理";
|
|
|
- nodeType = "4";
|
|
|
- }
|
|
|
- else if (order.ActualHandleOrgName.Length == 9)
|
|
|
- {
|
|
|
- nodeName = "二级部门办理";
|
|
|
- nodeType = "4";
|
|
|
- }
|
|
|
- else if (order.ActualHandleOrgName.Length == 12)
|
|
|
- {
|
|
|
- nodeName = "三级部门办理";
|
|
|
- nodeType = "4";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- LZ110ZFlowedDto flowedDto = new LZ110ZFlowedDto()
|
|
|
- {
|
|
|
- RunID = dto.WorkflowTrace.Id,
|
|
|
- FlowID = order.Id,
|
|
|
- Code = order.No,
|
|
|
- NodeName = nodeName,
|
|
|
- NodeType = nodeType,
|
|
|
- HandleBMName = order.ActualHandleOrgName,
|
|
|
- HandleUserName = order.ActualHandlerName,
|
|
|
- HandleTime = order.ActualHandleTime.HasValue == true ? order.ActualHandleTime.Value.ToString("yyyy/MM/dd HH:mm:ss") : DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"),
|
|
|
- HandleOpinion = order.ActualOpinion,
|
|
|
- IsPolice = "0",
|
|
|
- PoliceCode = order.ExternalId,
|
|
|
- HandleState = string.Empty
|
|
|
- };
|
|
|
-
|
|
|
- var GdblztInfoObject = EncryptHandler.AES(flowedDto);
|
|
|
- await InitSendData(order.Id, order.No, "1", LZ110Defaults.InteractiveFlowed, JsonConvert.SerializeObject(flowedDto), JsonConvert.SerializeObject(GdblztInfoObject), cancellationToken);
|
|
|
- #endregion
|
|
|
-
|
|
|
- #region 接受数据 工单办理结果
|
|
|
-
|
|
|
- LZ110ZHandResultDto handResultDto = new LZ110ZHandResultDto()
|
|
|
- {
|
|
|
- Code = order.No,
|
|
|
- HandleUserName = order.ActualHandlerName,
|
|
|
- HandleBMName = order.ActualHandleOrgName,
|
|
|
- HandleTime = order.FiledTime.HasValue == true ? order.FiledTime.Value.ToString("yyyy/MM/dd HH:mm:ss") : DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"),
|
|
|
- HandleOpinion = order.FileOpinion,
|
|
|
- HandleState = checkData != null ? "2" : "1",
|
|
|
- PoliceCode = order.ExternalId,
|
|
|
- };
|
|
|
-
|
|
|
- var GDBLJGInfoObject = EncryptHandler.AES(handResultDto);
|
|
|
- await InitSendData(order.Id, order.No, "1", LZ110Defaults.InteractiveHandResult, JsonConvert.SerializeObject(handResultDto), JsonConvert.SerializeObject(GDBLJGInfoObject), cancellationToken);
|
|
|
-
|
|
|
- #endregion
|
|
|
-
|
|
|
- #region 接受数据 工单办理状态
|
|
|
- LZ110ZUpdateStatusDto updateStatusDto = new LZ110ZUpdateStatusDto()
|
|
|
- {
|
|
|
- Code = order.No,
|
|
|
- FlowID = order.Id,
|
|
|
- PoliceCode = order.ExternalId,
|
|
|
- HandleState = checkData != null ? "3" : "5",
|
|
|
- };
|
|
|
- var GDBLZTInfoObject = EncryptHandler.AES(updateStatusDto);
|
|
|
- await InitSendData(order.Id, order.No, "1", LZ110Defaults.InteractiveUpdateStatus, JsonConvert.SerializeObject(updateStatusDto), JsonConvert.SerializeObject(GDBLZTInfoObject), cancellationToken);
|
|
|
-
|
|
|
- #endregion
|
|
|
-
|
|
|
- #region 接受数据 工单延期申请
|
|
|
- if (dto.OrderSearchDelay != null)
|
|
|
- {
|
|
|
- var orderSearchDelay = dto.OrderSearchDelay;
|
|
|
- LZ110ZExtensionRequestDto extensionRequestDto = new LZ110ZExtensionRequestDto()
|
|
|
- {
|
|
|
- FlowID = order.Id,
|
|
|
- Code = order.No,
|
|
|
- ApplyBMName = orderSearchDelay.ApplyOrgName,
|
|
|
- ApplyUserName = orderSearchDelay.EmployeeName,
|
|
|
- ApplyTime = orderSearchDelay.ApplyDelayTime.ToString("yyyy/MM/dd HH:mm:ss"),
|
|
|
- ApplyTimeLimit = orderSearchDelay.DelayNum.ToString(),
|
|
|
- ApplyContent = orderSearchDelay.DelayReason,
|
|
|
- FPID = orderSearchDelay.Id,
|
|
|
- RunID = orderSearchDelay.WorkflowId,
|
|
|
- PoliceCode = order.ExternalId
|
|
|
- };
|
|
|
- var GDYQSQInfoObject = EncryptHandler.AES(extensionRequestDto);
|
|
|
- await InitSendData(order.Id, order.No, "1", LZ110Defaults.InteractiveExtensionRequest, JsonConvert.SerializeObject(extensionRequestDto), JsonConvert.SerializeObject(GDYQSQInfoObject), cancellationToken);
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- #endregion
|
|
|
|
|
|
var data = await _policeSendChainDealHndRepository.GetAsync(p => p.OrderId == dto.Order.Id && p.DisposalType == "1", cancellationToken);
|
|
|
var actualOpinion = dto.Order.ActualOpinion.Length > 1500 ? dto.Order.ActualOpinion.Substring(0, 1500) : dto.Order.ActualOpinion;
|
|
@@ -288,7 +189,8 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
FeedbackUnitName = dto.Order.ActualHandleOrgName,
|
|
|
WarehousingTime = DateTime.Now,
|
|
|
DisposalType = "1",
|
|
|
- OrderId = dto.Order.Id
|
|
|
+ OrderId = dto.Order.Id,
|
|
|
+ No = dto.Order.No
|
|
|
};
|
|
|
await _policeSendChainDealHndRepository.AddAsync(data, cancellationToken);
|
|
|
}
|
|
@@ -345,7 +247,8 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
ReturnOpinion = actualOpinion,
|
|
|
ReturnTime = orderDto.ActualHandleTime,
|
|
|
WarehousingTime = DateTime.Now,
|
|
|
- DisposalType = "2"
|
|
|
+ DisposalType = "2",
|
|
|
+ No = orderDto.No
|
|
|
};
|
|
|
await _policeSendChainDealHndRepository.AddAsync(dataPolice, cancellationToken);
|
|
|
}
|
|
@@ -397,6 +300,7 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
DisposalType = "3",
|
|
|
CreatorName = dto.VisitName,
|
|
|
WarehousingTime = DateTime.Now,
|
|
|
+ No = dto.No
|
|
|
};
|
|
|
await _policeSendChainDealHndRepository.AddAsync(checkData, cancellationToken);
|
|
|
}
|
|
@@ -510,17 +414,17 @@ namespace DataSharing.Police110.HaiNengDa110
|
|
|
if (!checkData)
|
|
|
{
|
|
|
//泸州110签收
|
|
|
- LZ110ZUpdateStatusDto lusm = new LZ110ZUpdateStatusDto()
|
|
|
- {
|
|
|
- Code = orderDto.No,
|
|
|
- FlowID = orderDto.Id,
|
|
|
- PoliceCode = orderDto.ExternalId,
|
|
|
- HandleState = "1",
|
|
|
- };
|
|
|
- var GDYQSQInfoObject = EncryptHandler.AES(lusm);
|
|
|
- await InitSendData(orderDto.Id, orderDto.No, "1", LZ110Defaults.InteractiveUpdateStatus, JsonConvert.SerializeObject(lusm), JsonConvert.SerializeObject(GDYQSQInfoObject), cancellationToken);
|
|
|
-
|
|
|
-
|
|
|
+ //LZ110ZUpdateStatusDto lusm = new LZ110ZUpdateStatusDto()
|
|
|
+ //{
|
|
|
+ // Code = orderDto.No,
|
|
|
+ // FlowID = orderDto.Id,
|
|
|
+ // PoliceCode = orderDto.ExternalId,
|
|
|
+ // HandleState = "1",
|
|
|
+ //};
|
|
|
+ //var GDYQSQInfoObject = EncryptHandler.AES(lusm);
|
|
|
+ //await InitSendData(orderDto.Id, orderDto.No, "1", LZ110Defaults.InteractiveUpdateStatus, JsonConvert.SerializeObject(lusm), JsonConvert.SerializeObject(GDYQSQInfoObject), cancellationToken);
|
|
|
+
|
|
|
+ //泸州110签收 跨网交互平台
|
|
|
var dataPolice = new DsPoliceSendChainDealHnd()
|
|
|
{
|
|
|
OrderId = orderDto.Id,
|