TANG JIANG 2 years ago
parent
commit
aa525056a3

+ 6 - 2
src/Sharing.Province/Handlers/XieTong/DelayCaseInfoSendHandler.cs

@@ -57,9 +57,13 @@ namespace Sharing.Province.Handlers.XieTong
             var response = await pusher.PushDelayCaseInfoSendAsync(request, cancellationToken);
 
             //如果推送成功修改数据状态
-            if (response != null && response.Code == "1")
+            if (response != null)
             {
-                notification.Data.SyncState = "1";
+                if (response.Code == "1")
+                    notification.Data.SyncState = "1";
+                else
+                    notification.Data.SyncState = "2";
+
                 notification.Data.ReturnResult = Newtonsoft.Json.JsonConvert.SerializeObject(response);
                 await _delayCaseInfoSendRepository.UpdateAsync(notification.Data);
             }

+ 6 - 2
src/Sharing.Province/Handlers/XieTong/GetCaseBackApplyHandler.cs

@@ -57,9 +57,13 @@ namespace Sharing.Province.Handlers.XieTong
             var response = await pusher.PushGetCaseBackApplyAsync(request, cancellationToken);
 
             //如果推送成功修改数据状态
-            if (response != null && response.Code == "1")
+            if (response != null)
             {
-                notification.Data.SyncState = "1";
+                if (response.Code == "1")
+                    notification.Data.SyncState = "1";
+                else
+                    notification.Data.SyncState = "2";
+
                 notification.Data.ReturnResult = Newtonsoft.Json.JsonConvert.SerializeObject(response);
                 await _getCaseBackApplyRepository.UpdateAsync(notification.Data);
             }

+ 6 - 2
src/Sharing.Province/Handlers/XieTong/GetCaseProcessReceiveHandler.cs

@@ -57,9 +57,13 @@ namespace Sharing.Province.Handlers.XieTong
             var response = await pusher.PushGetCaseProcessReceiveAsync(request, cancellationToken);
 
             //如果推送成功修改数据状态
-            if (response != null && response.Code == "1")
+            if (response != null)
             {
-                notification.Data.SyncState = "1";
+                if (response.Code == "1")
+                    notification.Data.SyncState = "1";
+                else
+                    notification.Data.SyncState = "2";
+
                 notification.Data.ReturnResult = Newtonsoft.Json.JsonConvert.SerializeObject(response);
                 await _getCaseProcessReceiveRepository.UpdateAsync(notification.Data);
             }

+ 6 - 2
src/Sharing.Province/Handlers/XieTong/GetCaseResultReceiveHandler.cs

@@ -55,9 +55,13 @@ namespace Sharing.Province.Handlers.XieTong
             var response = await pusher.PushGetCaseResultReceiveAsync(request, cancellationToken);
 
             //如果推送成功修改数据状态
-            if (response != null && response.Code == "1")
+            if (response != null)
             {
-                notification.Data.SyncState = "1";
+                if (response.Code == "1")
+                    notification.Data.SyncState = "1";
+                else
+                    notification.Data.SyncState = "2";
+
                 notification.Data.ReturnResult = Newtonsoft.Json.JsonConvert.SerializeObject(response);
                 await _getCaseResultReceiveRepository.UpdateAsync(notification.Data);
             }

+ 6 - 2
src/Sharing.Province/Handlers/XieTong/GetVisitInfoReceiveHandler.cs

@@ -57,9 +57,13 @@ namespace Sharing.Province.Handlers.XieTong
             var response = await pusher.PushGetVisitInfoReceiveAsync(request, cancellationToken);
 
             //如果推送成功修改数据状态
-            if (response != null && response.Code == "1")
+            if (response != null)
             {
-                notification.Data.SyncState = "1";
+                if (response.Code == "1")
+                    notification.Data.SyncState = "1";
+                else
+                    notification.Data.SyncState = "2";
+
                 notification.Data.ReturnResult = Newtonsoft.Json.JsonConvert.SerializeObject(response);
                 await _getVisitInfoReceiveRepository.UpdateAsync(notification.Data);
             }