From c00a5c22a3eacb6319a82d3ddabbde226f81a572 Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期六, 15 二月 2025 20:41:50 +0800
Subject: [PATCH] 20250215

---
 src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 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..8a5fc0a 100644
--- a/src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java
+++ b/src/main/java/com/example/service/shanxiqin/xian/MeiJiLisService.java
@@ -115,7 +115,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 +126,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 +202,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 +216,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