From ff584d153492ea746690cf8e05c2b859f170ae0b Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期三, 07 八月 2024 18:10:47 +0800
Subject: [PATCH] zjh 2024/08/07-1

---
 ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java
index 36cfa27..bce6b5c 100644
--- a/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java
+++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java
@@ -562,11 +562,11 @@
             String result1 = getAjaxResult(result);
             JSONObject object = getJSONObject(result1);
             String code = object.getStr("ResultCode");
-            if(null !=code && code.equals("200")){
-                JSONArray resultData = object.getJSONArray("ResultData");
-                Map<String, Object> resultDatasss = (Map<String, Object>) resultData.get(0);
-                String cfh = resultDatasss.get("cfh").toString();
-
+            if(null !=code && code.equals("0")){
+                JSONObject resultData = object.getJSONObject("ResultData");
+//                Map<String, Object> resultDatasss = (Map<String, Object>) resultData.get(0);
+                String cfh = resultData.getStr("cfh");
+                log.info("鑽搧鐢宠鍚庣殑澶勬柟鍙锋槸: "+cfh+"  outpinmedicapplyDetilsDtos 閲岄潰鐨勫�间负: "+outpinmedicapplyDetilsDtos.toString());
                 for (OutpinmedicapplyDetilsDto detilsDto : outpinmedicapplyDetilsDtos) {
                     TjCf cf=new TjCf();
                     cf.setCardId(cardId);
@@ -670,7 +670,7 @@
                 String result1 = getAjaxResult(result);
                 JSONObject object = getJSONObject(result1);
                 String code = object.getStr("ResultCode");
-                if(null !=code && code.equals("200")){
+                if(null !=code && code.equals("0")){
                     cfService.delCfByCardId(cfh);
                 }
             }
@@ -760,7 +760,7 @@
                             String result1 = getAjaxResult(result);
                             JSONObject object = getJSONObject(result1);
                             String code = object.getStr("ResultCode");
-                            if(null !=code && code.equals("200")){
+                            if(null !=code && code.equals("0")){
                                 cfService.delCfByCardId(cfh);
                             }
                         }
@@ -845,7 +845,7 @@
                 String result1 = getAjaxResult(result);
                 JSONObject object = getJSONObject(result1);
                 String code = object.getStr("ResultCode");
-                if(null !=code && code.equals("200")){
+                if(null !=code && code.equals("0")){
                     cfService.delCfByCardId(cfh);
                 }
             }

--
Gitblit v1.8.0