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/weinan/PbkwyyHisService.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/service/shanxiqin/weinan/PbkwyyHisService.java b/src/main/java/com/example/service/shanxiqin/weinan/PbkwyyHisService.java index e8deef4..351be76 100644 --- a/src/main/java/com/example/service/shanxiqin/weinan/PbkwyyHisService.java +++ b/src/main/java/com/example/service/shanxiqin/weinan/PbkwyyHisService.java @@ -50,7 +50,7 @@ this.applicationContext = applicationContext; this.configValue = configValue; HIS_URL = configValue.getConfigValue("ShanXi_Qin_WeiNan_Pbkwyy.his_api_url") + ":" + configValue.getConfigValue("ShanXi_Qin_WeiNan_Pbkwyy.his_api_port") + configValue.getConfigValue("ShanXi_Qin_WeiNan_Pbkwyy.hisapiappend"); - TJ_URL = configValue.getConfigValue("ShanXi_Qin_WeiNan_Pbkwyy.tjUrl"); + TJ_URL = configValue.getConfigValue("tjUrl"); CZY = configValue.getConfigValue("ShanXi_Qin_WeiNan_Pbkwyy.czy"); } @@ -406,7 +406,9 @@ map.put ("yeWuLx",string); // 鍙傛暟绫诲瀷鍖哄垎 map.put("type","1"); - String post = HttpClientUtils.sendPost(TJ_URL + "/callBack/pushZhiFuMsg", map); + HashMap<String, Object> headers = new HashMap<>(); + headers.put("hospId","pbkwyy"); + String post = HttpClientUtils.sendPost(TJ_URL + "/callBack/pushZhiFuMsg", map,headers); JSONObject jsonObject = JSONUtil.parseObj(post); JSONObject obj = JSONUtil.createObj(); if (jsonObject.getStr("code").equals("200")) { @@ -535,7 +537,9 @@ public void syncDict(String hospName) { HashMap<String, Object> map = new HashMap<>(); map.put("hosp","shanxiqinpbkwyy"); - String post = HttpClientUtils.sendPost(TJ_URL + "/callBack/getZdList", map); + HashMap<String, Object> headers = new HashMap<>(); + headers.put("hospId","pbkwyy"); + String post = HttpClientUtils.sendPost(TJ_URL + "/callBack/getZdList", map,headers); JSONArray jsonArray = JSONUtil.parseObj(post).getJSONArray("data"); if (jsonArray != null && !jsonArray.isEmpty()) { List<HisSyncDict> list = jsonArray.toList(HisSyncDict.class); -- Gitblit v1.8.0