luxiaotao1123
2021-06-18 e4ea838c20e94dff4fdbb4f82b542a8b5790fa9d
src/main/java/zy/cloud/wms/common/service/erp/ErpService.java
@@ -70,7 +70,7 @@
                detl.setUnit(mat==null?"暂无":mat.getUnit());
                detail.add(detl);
            }
            System.out.println(JSON.toJSONString(uploadBill));
            log.warn(JSON.toJSONString(uploadBill));
            String response = new HttpHandler.Builder()
                    .setUri(ErpScheduler.URI)
                    .setPath(ErpScheduler.UPLOAD_BILL)
@@ -78,13 +78,18 @@
                    .build()
                    .doPost();
            // 日志记录
            RequestLog logInfo = new RequestLog();
            logInfo.setName("单据上传,单据类型" + docId.toString());
            logInfo.setRequest(JSON.toJSONString(uploadBill)); // 入参
            logInfo.setResponse(response); // 出参
            logInfo.setCreateTime(new Date());
            requestLogService.insert(logInfo);
            try {
                // 日志记录
                RequestLog logInfo = new RequestLog();
                logInfo.setName("单据上传,单据类型" + docId.toString());
                logInfo.setRequest(JSON.toJSONString(uploadBill)); // 入参
                logInfo.setResponse(response); // 出参
                logInfo.setCreateTime(new Date());
                requestLogService.insert(logInfo);
            } catch (Exception e) {
                log.error(e.getMessage());
            }
            if (!Cools.isEmpty(response)) {
                log.warn(response);