From 160d6f72801382c2995bb6eefd6d9c41f6336744 Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Mon, 20 Nov 2023 13:24:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E5=B7=A5=E5=8D=95=E4=B8=8B?= =?UTF-8?q?=E6=B4=BE=EF=BC=8C=E6=9A=82=E6=97=B6=E5=8E=BB=E6=8E=89sap?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProOrderWorkorderServiceImpl.java | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java index 3509a1c8..aac5d70a 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderWorkorderServiceImpl.java @@ -279,14 +279,20 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService { sysSapLog.setReqcode("请求"); sysSapLog.setCreateTime(DateUtils.getNowDate()); proOrderMapper.addSapLog(sysSapLog); - - R> r = remoteSapService.SapCreateOrder(sapList); - logger.info("sap工单回传:" + r.getMsg()); - if (500 == r.getCode()) { - logger.error("sap工单回传:" + r.getMsg()); - return 0; +//未来生产要打开 +// R> r = remoteSapService.SapCreateOrder(sapList); +// logger.info("sap工单回传:" + r.getMsg()); +// if (500 == r.getCode()) { +// logger.error("sap工单回传:" + r.getMsg()); +// return 0; +// } +// List returnCodes = r.getData(); + //未来生产要删掉 + List returnCodes = new ArrayList<>(); + for(SapCreateOrder xnsap:sapList){ + returnCodes.add("test"); } - List returnCodes = r.getData(); + if (!CollectionUtils.isEmpty(returnCodes)) { for (String sapCode : returnCodes) { ProOrderWorkorder oworkSap = new ProOrderWorkorder();