zjh
2024-08-07 ff584d153492ea746690cf8e05c2b859f170ae0b
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);
                }
            }