路泰机电科技体检——数据平台后端
zhaowenxuan
2025-02-21 aa93e512a60379c6373d10023f49dae4403b51c4
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);