自动化立体仓库 - WMS系统
#
Junjie
6 天以前 5a546d41cbdac4d4e23a2240841834236dc99483
src/main/java/com/zy/asrs/service/impl/ReportToThirdServiceImpl.java
@@ -86,6 +86,7 @@
        Object process2 = null;
        String memo = order.getMemo();
        String remark = "";
        log.info("订单开始上报:{}", JSON.toJSONString(order));
        try {
            switch (order.getDocType$().toString()) {
                case "销售退货":
@@ -203,7 +204,7 @@
            e.printStackTrace();
            throw new CoolException("调用接口报错,请联系管理员");
        } finally {
            reportApiLog(response, order.getDocType$(), nyncIp, saveRefDelivery);
            reportApiLog(order, process1, process2, response, order.getDocType$(), nyncIp, saveRefDelivery);
        }
    }
@@ -580,16 +581,20 @@
    }
    private Boolean reportApiLog(Object data, String docType, String url, String path) {
        String response = "";
    private Boolean reportApiLog(Order order, Object process1, Object process2, Object response, String docType, String url, String path) {
        HashMap<String, Object> request = new HashMap<>();
        request.put("order", order);
        request.put("process1", process1);
        request.put("process2", process2);
        boolean success = false;
        apiLogService.save(
                docType,
                url + path,
                null,
                "127.0.0.1",
                JSON.toJSONString(data),
                response,
                JSON.toJSONString(request),
                JSON.toJSONString(response),
                success
        );
        return false;