| | |
| | | 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"); |
| | | } |
| | | |
| | |
| | | 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")) { |
| | |
| | | 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); |