|
@ -530,7 +530,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public HttpResponse shipDeviceUpdate(JSONObject param) { |
|
|
public JSONObject shipDeviceUpdate(JSONObject param) { |
|
|
try { |
|
|
try { |
|
|
MDC.put(log_file_type, log_type); |
|
|
MDC.put(log_file_type, log_type); |
|
|
if (StrUtil.equals(paramService.findByCode(AcsConfig.HASWMS).getValue(), "1")) { |
|
|
if (StrUtil.equals(paramService.findByCode(AcsConfig.HASWMS).getValue(), "1")) { |
|
@ -538,12 +538,15 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
AddressDto addressDto = addressService.findByCode("shipDeviceUpdate"); |
|
|
AddressDto addressDto = addressService.findByCode("shipDeviceUpdate"); |
|
|
String methods_url = addressDto.getMethods_url(); |
|
|
String methods_url = addressDto.getMethods_url(); |
|
|
String url = wmsUrl + methods_url; |
|
|
String url = wmsUrl + methods_url; |
|
|
// log.info("feedAgvTaskStatus - 请求参数 {}", param);
|
|
|
log.info("shipDeviceUpdate - 请求参数 {}", param); |
|
|
return HttpRequest |
|
|
JSONArray ja = new JSONArray(); |
|
|
.post(url) |
|
|
ja.add(param); |
|
|
.body(param.toString()) |
|
|
HttpResponse result=HttpRequest.post(url) |
|
|
|
|
|
.body(ja.toString()) |
|
|
|
|
|
.basicAuth("INFOR","Aa123456@@!!") |
|
|
.execute(); |
|
|
.execute(); |
|
|
// log.info("feedAgvTaskStatus - 返回参数 {}", response.body());
|
|
|
log.info("shipDeviceUpdate - 返回参数 {}", result.body()); |
|
|
|
|
|
return JSONObject.parseObject(result.body()); |
|
|
} |
|
|
} |
|
|
} catch (Throwable ignored) { |
|
|
} catch (Throwable ignored) { |
|
|
|
|
|
|
|
|