jeremy 8 månader sedan
förälder
incheckning
19df81c5e4
1 ändrade filer med 12 tillägg och 0 borttagningar
  1. 12 0
      src/HealthExamBookingService/HealthExamBookingService.cs

+ 12 - 0
src/HealthExamBookingService/HealthExamBookingService.cs

@@ -536,6 +536,14 @@ public partial class HealthExamBookingService : JsonRpcService, IVitalHealthExam
                     Token = request.Token,
                     PhyId = "",
                 });
+                if (jingQiRes.Status != "0")
+                {
+                    Logger.WriteLineError($"HealthExamBookingService DeleteRegiterInfoAsync failed, cardNo:{registerInfo.IDCardNo}, Status:{jingQiRes.Status}, ErroMsg:{jingQiRes.ErroMsg}");
+                }
+                else
+                {
+                    Logger.WriteLineInfo($"HealthExamBookingService DeleteRegiterInfoAsync success, cardNo:{registerInfo.IDCardNo}, Status:{jingQiRes.Status}, ErroMsg:{jingQiRes.ErroMsg}");
+                }
             }
             catch (Exception ex)
             {
@@ -578,6 +586,10 @@ public partial class HealthExamBookingService : JsonRpcService, IVitalHealthExam
                     ThrowCustomerException(CustomerRpcCode.JingQiApiFailed, jingQiRes.ErroMsg);
                 }
             }
+            else
+            {
+                Logger.WriteLineInfo($"HealthExamBookingService JingQiExamRegisterAsync success, cardNo:{request.IDCardNo}, Status:{jingQiRes.Status}, ErroMsg:{jingQiRes.ErroMsg}");
+            }
             PropertyInfo[] properties = typeof(FacturyExamRegisterResult).GetProperties();
             foreach (PropertyInfo property in properties)
             {