diff --git a/src/main/java/com/glxp/mipsdl/client/lhzyy/LhzyyClient.java b/src/main/java/com/glxp/mipsdl/client/lhzyy/LhzyyClient.java index 3ff149d..d602cd0 100644 --- a/src/main/java/com/glxp/mipsdl/client/lhzyy/LhzyyClient.java +++ b/src/main/java/com/glxp/mipsdl/client/lhzyy/LhzyyClient.java @@ -3,6 +3,9 @@ package com.glxp.mipsdl.client.lhzyy; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.StrUtil; +import cn.hutool.http.HttpRequest; +import cn.hutool.http.HttpResponse; +import cn.hutool.http.HttpUtil; import cn.hutool.json.JSONUtil; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -68,6 +71,7 @@ import java.math.BigDecimal; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Map; import java.util.stream.Collectors; /** @@ -424,9 +428,13 @@ public class LhzyyClient extends CommonHttpClient { materialDictEntity.setSfzht(0); } materialDictEntity.setSfybfw(Integer.valueOf(udiRelevanceResponse.getBasicPrductRemak13())); - - - String response = httpClient.postJson(thrSystemDetailService.getUrlExclude(Constants.URL_NAME_PRODUCT_SUBMIT_URL), materialDictEntity); +// Map headers = new Map<>(); + HttpRequest request = HttpUtil.createPost("http://192.168.110.200:81/api/udi/UpdateMaterials"); + request.header("Content-Type", "application/json"); + request.body(JSONUtil.toJsonStr(materialDictEntity));//192.168.110.200:81/api/udi/UpdateMaterials + HttpResponse xmlResponse = request.execute(); + String response = xmlResponse.body(); +// String response = httpClient.postJson(thrSystemDetailService.getUrlExclude(Constants.URL_NAME_PRODUCT_SUBMIT_URL), materialDictEntity); log.error("提交新增产品信息返回:" + response); try { diff --git a/src/main/resources/hosp_dict.json b/src/main/resources/hosp_dict.json index 8f68ea2..cdd09c2 100644 --- a/src/main/resources/hosp_dict.json +++ b/src/main/resources/hosp_dict.json @@ -62,5 +62,9 @@ { "code": "100015", "name": "湖里妇幼医院" + }, + { + "code": "100016", + "name": "龙海中医院" } ]