opt:ERP物料推送功能修改
This commit is contained in:
@@ -60,17 +60,14 @@ public class GetMaterialInfoTask {
|
|||||||
if(null == requestDto.getFull_flag()){
|
if(null == requestDto.getFull_flag()){
|
||||||
requestDto.setFull_flag(false);
|
requestDto.setFull_flag(false);
|
||||||
}
|
}
|
||||||
|
log.info("请求ERP下发物料信息,入参=【{}】",JSONObject.toJSONString(requestDto));
|
||||||
|
|
||||||
String resultMsg = HttpRequest.post(url)
|
String resultMsg = HttpRequest.post(url)
|
||||||
.body(JSONObject.toJSONString(requestDto))
|
.body(JSONObject.toJSONString(requestDto))
|
||||||
.execute().body();
|
.execute().body();
|
||||||
|
|
||||||
log.info("请求ERP下发物料信息,入参=【{}】",JSONObject.toJSONString(requestDto));
|
|
||||||
|
|
||||||
// 格式转换
|
|
||||||
JSONObject result = JSONObject.parseObject(resultMsg);
|
JSONObject result = JSONObject.parseObject(resultMsg);
|
||||||
MaterialInfoRespondDto respondDto = JSONObject.toJavaObject(result, MaterialInfoRespondDto.class);
|
log.info("请求ERP下发物料信息,返回参=【{}】" , result.toString());
|
||||||
log.info("请求ERP下发物料信息,返回参=【{}】",JSONObject.toJSONString(respondDto));
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
//网络不通
|
//网络不通
|
||||||
String msg = e.getMessage();
|
String msg = e.getMessage();
|
||||||
|
|||||||
Reference in New Issue
Block a user