瀏覽代碼

泸州110海能达对接

libin 2 月之前
父節點
當前提交
04c3618895

+ 1 - 1
src/DataSharing.Host/config/appsettings.Development.json

@@ -44,7 +44,7 @@
     }
   },
   "DatabaseConfiguration": {
-    "ApplyDbMigrations": true,
+    "ApplyDbMigrations": false,
     "ApplySeed": false
   },
   "MqConfiguration": {

+ 20 - 15
src/DataSharing.Police110/HaiNengDa110/HndService.cs

@@ -185,8 +185,8 @@ namespace DataSharing.Police110.HaiNengDa110
                     ResultDescription = actualOpinion,
                     FeedbackPersonNumber = feedbackPersonNumber,
                     FeedbackPersonName = dto.Order.ActualHandlerName,
-                    FeedbackUnitCode = actualHandleOrgCode,
-                    FeedbackUnitName = dto.Order.ActualHandleOrgName,
+                    FeedbackUnitCode = "12345",
+                    FeedbackUnitName = "12345政务服务热线",
                     WarehousingTime = DateTime.Now,
                     DisposalType = "1",
                     OrderId = dto.Order.Id,
@@ -202,8 +202,8 @@ namespace DataSharing.Police110.HaiNengDa110
                 data.ResultDescription = actualOpinion;
                 data.FeedbackPersonNumber = feedbackPersonNumber;
                 data.FeedbackPersonName = dto.Order.ActualHandlerName;
-                data.FeedbackUnitCode = actualHandleOrgCode;
-                data.FeedbackUnitName = dto.Order.ActualHandleOrgName;
+                data.FeedbackUnitCode = "12345";
+                data.FeedbackUnitName = "12345政务服务热线";
                 data.WarehousingTime = DateTime.Now;
                 await _policeSendChainDealHndRepository.UpdateAsync(data, cancellationToken);
             }
@@ -243,7 +243,7 @@ namespace DataSharing.Police110.HaiNengDa110
                     OrderId = orderDto.Id,
                     AlarmReceiptNumber = orderDto.ExternalId,
                     ReturnName = orderDto.ActualHandlerName,
-                    ReturnUnit = orderDto.ActualHandleOrgName,
+                    ReturnUnit = "12345政务服务热线",
                     ReturnOpinion = actualOpinion,
                     ReturnTime = orderDto.ActualHandleTime,
                     WarehousingTime = DateTime.Now,
@@ -413,24 +413,29 @@ namespace DataSharing.Police110.HaiNengDa110
             var checkData = await _policeSendChainDealHndRepository.AnyAsync(p => p.AlarmReceiptNumber == orderDto.ExternalId && p.DisposalType == "4", cancellationToken);
             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);
+                var feedbackPersonNumber = "10001";
+                if (!string.IsNullOrEmpty(orderDto.AcceptorStaffNo))
+                    feedbackPersonNumber = orderDto.AcceptorStaffNo;
+                else
+                {
+                    if (!string.IsNullOrEmpty(orderDto.AcceptorId))
+                        feedbackPersonNumber = orderDto.AcceptorId.Substring(orderDto.AcceptorId.Length - 6);
+                }
 
                 //泸州110签收 跨网交互平台
                 var dataPolice = new DsPoliceSendChainDealHnd()
                 {
                     OrderId = orderDto.Id,
                     AlarmReceiptNumber = orderDto.ExternalId,
+                    DisposalSituation = "已签收",
+                    ResultDescription = "已签收",
+                    FeedbackUnitCode = "12345",
+                    FeedbackUnitName = "12345政务服务热线",
+                    FeedbackPersonNumber = feedbackPersonNumber,
+                    FeedbackPersonName = orderDto.ActualHandlerName,
                     DisposalType = "4",
                     WarehousingTime = DateTime.Now,
+                    No = orderDto.No
                 };
                 await _policeSendChainDealHndRepository.AddAsync(dataPolice, cancellationToken);
             }