| | |
| | | } |
| | | hashMap.put("OderInfoList",orderInfoList); |
| | | log.info("申请单 ->{}",JSONUtil.toJsonStr(hashMap)); |
| | | String post = sendPost(LIS_URL + "/lisinterface" + "/HisApplyList", hashMap); |
| | | String post = sendPost(LIS_URL + "/lisinterface" + "/HisApplyList", hashMap,new HashMap<>()); |
| | | JSONObject entries = JSONUtil.parseObj(post); |
| | | if (entries.getStr("MsgCode").equals("0")) |
| | | return AjaxResult.success(); |
| | |
| | | public String getXmlList(Map<String, Object> map) { |
| | | Map<String, Object> request = (Map<String, Object>) map.get("Request"); |
| | | String hospitalId = request.get("HospitalId").toString(); |
| | | String json = sendPost(TJ_URL + "/callBack/getZdList", new HashMap<>()); |
| | | HashMap<String, Object> headers = new HashMap<>(); |
| | | headers.put("hospId","xamjyy"); |
| | | String json = sendPost(TJ_URL + "/callBack/getZdList", new HashMap<>(),headers); |
| | | JSONObject entries = JSONUtil.parseObj(json); |
| | | JSONObject result = JSONUtil.createObj(); |
| | | if (entries.getStr("code").equals("200")){ |
| | |
| | | hashMap.put("keys",keys); |
| | | hashMap.put("czy",personid); |
| | | hashMap.put("hospid",hospitalid); |
| | | String post = sendPost(TJ_URL + "/callBack/lisRevoke", hashMap); |
| | | HashMap<String, Object> headers = new HashMap<>(); |
| | | headers.put("hospId","xamjyy"); |
| | | String post = sendPost(TJ_URL + "/callBack/lisRevoke", hashMap,headers); |
| | | JSONObject entries = JSONUtil.parseObj(post); |
| | | JSONObject object = JSONUtil.createObj(); |
| | | if (entries.getStr("code").equals("200")){ |
| | |
| | | } |
| | | } |
| | | |
| | | private String sendPost(String url, Map<String, Object> hashMap){ |
| | | return HttpClientUtils.sendPost(url, hashMap); |
| | | private String sendPost(String url, Map<String, Object> hashMap,Map<String ,Object> headers){ |
| | | return HttpClientUtils.sendPost(url, hashMap,headers); |
| | | } |
| | | } |