2/18 龙还接产品1.0

Lhxyy
wangwei 2 months ago
parent c3776546ef
commit 457b4f6ea6

@ -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<String, String> 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 {

@ -62,5 +62,9 @@
{
"code": "100015",
"name": "湖里妇幼医院"
},
{
"code": "100016",
"name": "龙海中医院"
}
]

Loading…
Cancel
Save