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