|
|
|
@ -418,6 +418,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
"}"; |
|
|
|
|
|
|
|
|
|
// 发送POST请求
|
|
|
|
|
log.info("[MDM主动同步客商]请求地址:{},请求参数:{}", buyerUrl, requestBody); |
|
|
|
|
HttpResponse response = HttpRequest.post(buyerUrl) |
|
|
|
|
.timeout(20000) // 设置请求超时时间
|
|
|
|
|
.header("Content-Type", "application/json") |
|
|
|
@ -426,6 +427,7 @@ public class SDEnregyServiceImpl extends SDEnregyServiceAbstract { |
|
|
|
|
.body(requestBody) // 设置请求体内容
|
|
|
|
|
.execute(); |
|
|
|
|
String resp = response.body(); |
|
|
|
|
log.info("[MDM主动同步客商]响应结果:{}", resp); |
|
|
|
|
|
|
|
|
|
SDEnergyMdmBaseBO baseBO = JSONObject.parseObject(resp, SDEnergyMdmBaseBO.class); |
|
|
|
|
List<MdmGmfxxtbReqBO> mdmGmfxxtbReqBOS = (List<MdmGmfxxtbReqBO>) Optional.of(baseBO) |
|
|
|
|