自动化立体仓库 - WMS系统
1
ZY
2024-09-26 ff258eafdf2c98415fd67d4816323b830ce860f8
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -620,10 +620,10 @@
            }
        }
        for (OpenOrderPakoutParam param : list) {
            doHttpRequest(param, "入库单上报", url, orderReportPath, null, "127.0.0.1");
        //for (OpenOrderPakoutParam param : list) {
            doHttpRequest(list, "入库单上报", url, orderReportPath, null, "127.0.0.1");
        }
        //}
        return 200;
@@ -690,6 +690,7 @@
        boolean success = false;
        try {
            log.info("请求参数:{}", requestParam);
            response = new HttpHandler.Builder()
                    .setUri(url)
                    .setPath(path)
@@ -697,19 +698,15 @@
                    .build()
                    .doPost();
            log.info("入库单上报请求返回报文:{}", response);
            response = response.replace("\\", "");
            response = response.substring(1, response.length() - 1);
            JSONObject jsonObject = JSON.parseObject(response);
            JSONArray jsonArray = (JSONArray) jsonObject.get("");
            JSONObject jsonResult = (JSONObject) jsonArray.get(0);
            if (Cools.isEmpty(jsonResult.get("ErrorCode"))) {
                throw new CoolException(jsonResult.get("ErrorMsg").toString());
            if (Cools.isEmpty(jsonObject.get("ErrorCode"))) {
                throw new CoolException(jsonObject.get("ErrorMsg").toString());
            }
            int code = Integer.parseInt(jsonResult.get("ErrorCode").toString());
            if (code != 1) {
                throw new CoolException(jsonResult.get("ErrorMsg").toString());
            int code = Integer.parseInt(jsonObject.get("ErrorCode").toString());
            if (code == 0) {
                throw new CoolException(jsonObject.get("ErrorMsg").toString());
            }
            success = true;
            return code;