zjh
2024-06-21 6c9e1bdb612fead54a204561c1d5c796ab5bc830
ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethod.java
@@ -439,16 +439,17 @@
        Date dates = new Date();
        final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss");
        String jcsqdh = orderService.getHuoQuJcsqdh(order.getCardId());
        List<String> jcsqdh = orderService.getHuoQuJcsqdh(order.getCardId());
        String jysqdh = orderService.getHuoQuJysqdh(order.getCardId());
        List<String> jysqdh = orderService.getHuoQuJysqdh(order.getCardId());
        String zlsqdh = orderService.getHuoQuZlsqdh(order.getCardId());
        List<String> zlsqdh = orderService.getHuoQuZlsqdh(order.getCardId());
        //2.1.6.5 作废门诊检查申请
        if (null != jcsqdh) {
            AjaxResult result = controller.Outpindelexamapply(order.getCardId(), "00029", jcsqdh);
        if (null != jcsqdh && jcsqdh.size()>0) {
            for (String s : jcsqdh) {
                AjaxResult result = controller.Outpindelexamapply(order.getCardId(), "00029", s);
            String result1 = getAjaxResult(result);
            JSONObject object = getJSONObject(result1);
            String code = object.getStr("ResultCode");
@@ -459,6 +460,8 @@
            }
        }
        }
        //2.1.6.3 作废门诊检验申请
@@ -467,8 +470,9 @@
        JSONObject object1 = null;
        String code1 = null;
        if (null != jysqdh) {
            ajaxResult = controller.Outpindeltestapply(order.getCardId(), "00029", jysqdh);
        if (null != jysqdh && jysqdh.size()>0) {
            for (String s : jysqdh) {
                ajaxResult = controller.Outpindeltestapply(order.getCardId(), "00029", s);
            result2 = getAjaxResult(ajaxResult);
            object1 = getJSONObject(result2);
            code1 = object1.getStr("ResultCode");
@@ -478,10 +482,12 @@
                return false;
            }
        }
        }
        //2.1.6.9 作废门诊治疗处置申请
        if (null != zlsqdh) {
            ajaxResult = controller.Outpintdelreatapply(order.getCardId(), "00029", zlsqdh);
        if (null != zlsqdh && zlsqdh.size()>0) {
            for (String s : zlsqdh) {
                ajaxResult = controller.Outpintdelreatapply(order.getCardId(), "00029", s);
            result2 = getAjaxResult(ajaxResult);
            object1 = getJSONObject(result2);
            code1 = object1.getStr("ResultCode");
@@ -489,6 +495,7 @@
                return false;
            }
        }
        }
        //2.1.3 门诊医生取消接诊
        ajaxResult = controller.Outpinunconapply(order.getCardId(), date, "00029");
        result2 = getAjaxResult(ajaxResult);