| | |
| | | private int doHttpRequest(Object requestParam, String namespace, String url, String path, String appkey, String ip) { |
| | | String response = ""; |
| | | boolean success = false; |
| | | log.error(JSONObject.toJSONString(requestParam)); |
| | | log.info(JSONObject.toJSONString(requestParam)); |
| | | try { |
| | | response = new HttpHandler.Builder() |
| | | .setUri(url) |
| | |
| | | .setJson(JSONObject.toJSONString(requestParam)) |
| | | .build() |
| | | .doPost(); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | log.info("上报ERP出库单据请求返回报文:{}", response); |
| | | JSONObject jsonObject = JSON.parseObject(response); |
| | | if (Cools.isEmpty(jsonObject.get("ErrorCode"))) { |
| | | throw new CoolException(jsonObject.get("ErrorMsg").toString()); |
| | | } |