opt:ERP物料推送功能修改

This commit is contained in:
2025-10-11 14:09:30 +08:00
parent 33b020f1a6
commit 3245f4dd32

View File

@@ -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();