From c894bfa934c6346479e6ab0a530c59869f43d0a5 Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期一, 17 三月 2025 15:33:21 +0800 Subject: [PATCH] 增加日志打印 --- src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java b/src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java index 7caffaf..63cc299 100644 --- a/src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java +++ b/src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java @@ -91,9 +91,7 @@ hashMap.put("BEDNO",""); hashMap.put("SENDDATE",dqsj); hashMap.put("SFDATE",dqsj); - // TODO hashMap.put("HOSPITALID","xamjyy"); - // TODO // hashMap.put("CARDTYPE",""); hashMap.put("PATIENTTYPE","3"); hashMap.put("SFYNAME",map.get(ApiParamsConstantsLis.SFYNAME)); @@ -115,7 +113,7 @@ } 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(); @@ -126,7 +124,9 @@ 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")){ @@ -200,7 +200,9 @@ 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")){ @@ -212,7 +214,7 @@ } } - 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); } } -- Gitblit v1.8.0