zhaowenxuan
2024-10-18 050c9712591dcd97ba1d508e3f7bc2cda9196f60
ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiGetMethodService.java
@@ -275,6 +275,7 @@
                responseJson = HttpClientUtils.sendPost(LIS_URL + apiConfig.getApiUrl(), params);
                break;
        }
        log.info("请求返回值1 ->{}",responseJson);
        Integer isResponse = apiConfig.getIsResponse();
        JSONObject response = null;
        if (isResponse == 1) {
@@ -286,8 +287,10 @@
            AjaxResult ajaxResult = AjaxResult.success();
            if (response.getStr(apiConfig.getResultDataKey()) != null && StrUtil.isNotBlank(response.getStr(apiConfig.getResultDataKey()))){
                JSONArray resultData = response.getJSONArray(apiConfig.getResultDataKey());
                log.info("请求返回值2 ->{}",JSONUtil.toJsonStr(resultData));
                List<Map<String, String>> list = new ArrayList<>();
                for (Object resultDatum : resultData) {
                    log.info("请求返回值3 ->{}",JSONUtil.toJsonStr(resultDatum));
                    JSONObject object = (JSONObject) resultDatum;
                    ajaxResult = save(object, type,apiConfig,JSONUtil.toJsonStr(params));
                    Map<String, String> map = new HashMap<>();
@@ -321,6 +324,7 @@
        if (code.equals("lis") || code.equals("pacs"))
            tabName = ((ApiConfig)hisApiConfig).getTabName();
        else tabName = ((HisApiConfig) hisApiConfig).getTabName();
        log.info("save方法 ->{}", tabName);
        Connection connection = getConnection();
        Boolean isExists = tabIsExists(connection, tabName);
        if (null == isExists)