自动化立体仓库 - WMS系统
1
ZY
2024-09-26 1bf2137e41cc8fdffd30708ec59904cffc548e0b
src/main/java/com/zy/asrs/task/handler/OrderSendHandler.java
@@ -82,7 +82,7 @@
    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)
@@ -90,14 +90,14 @@
                    .setJson(JSONObject.toJSONString(requestParam))
                    .build()
                    .doPost();
            log.info("上报ERP出库单据请求返回报文:{}", response);
            JSONObject jsonObject = JSON.parseObject(response);
            if (Cools.isEmpty(jsonObject.get("ErrorCode"))) {
                throw new CoolException(jsonObject.get("ErrorMsg").toString());
            }
            int code = Integer.parseInt(jsonObject.get("ErrorCode").toString());
            if (code != 0) {
            if (code == 0) {
                throw new CoolException(jsonObject.get("ErrorMsg").toString());
            }
            success = true;