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