|
|
|
|
@ -110,7 +110,7 @@ public class MeasuringUpkeepServiceImpl extends BaseServiceImpl<MeasuringUpkeepM |
|
|
|
|
|
|
|
|
|
// 创建HTTP请求
|
|
|
|
|
HttpRequest request = HttpRequest.newBuilder() |
|
|
|
|
.uri(URI.create(limsUrl + "/api/cloud-customized/zhgdDeviceParams/getDeviceListZhgd")) |
|
|
|
|
.uri(URI.create(limsUrl + "/cloud-customized/zhgdDeviceParams/savePrivateZHGD")) |
|
|
|
|
.header("Content-Type", "application/json") |
|
|
|
|
.header("Accept", "application/json") |
|
|
|
|
.POST(HttpRequest.BodyPublishers.ofString(requestBody.toJSONString())) |
|
|
|
|
@ -120,10 +120,6 @@ public class MeasuringUpkeepServiceImpl extends BaseServiceImpl<MeasuringUpkeepM |
|
|
|
|
try { |
|
|
|
|
// 发送同步请求
|
|
|
|
|
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); |
|
|
|
|
if (response.statusCode() != 200) { |
|
|
|
|
log.error("HTTP请求失败,状态码: {}", response.statusCode()); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
//成功返回改变申请单状态
|
|
|
|
|
String responseBody = response.body(); |
|
|
|
|
JSONObject result = JSONObject.parseObject(responseBody); |
|
|
|
|
|