| | |
| | | responseJson = HttpClientUtils.sendPost(LIS_URL + apiConfig.getApiUrl(), params); |
| | | break; |
| | | } |
| | | log.info("请求返回值1 ->{}",responseJson); |
| | | Integer isResponse = apiConfig.getIsResponse(); |
| | | JSONObject response = null; |
| | | if (isResponse == 1) { |
| | |
| | | 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<>(); |
| | |
| | | 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) |