自动化立体仓库 - WMS系统
#
Junjie
2025-08-02 6e1fb8ef464dcf2b06d4e7b883b1590631cc095b
#
1个文件已修改
21 ■■■■ 已修改文件
src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
@@ -294,13 +294,22 @@
            String cwarehouseid = entry.getKey();
            List<InventoryCheckOrderDetl> list = entry.getValue();
            Object process1 = processInvcount(list, cwarehouseid);
            //发送请求
            NcResultMessage response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, invcountAdd, JSONObject.toJSONString(process1));
            log.info("盘点单response:{}", response);
            if (!Cools.isEmpty(response) && response.isSuccess()) {
            NcResultMessage response = null;
            boolean success = false;
            try {
                //发送请求
                response = SendUtil.sendDataToNc(SendUtil.token, nyncIp + ":" + port, invcountAdd, JSONObject.toJSONString(process1));
                log.info("盘点单response:{}", response);
            } else {
                result = false;
                if (!Cools.isEmpty(response) && response.isSuccess()) {
                    log.info("盘点单response:{}", response);
                    success = true;
                } else {
                    result = false;
                }
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                reportApiLog(null, process1, null, response, "盘点上报", nyncIp, invcountAdd, success);
            }
        }