From fdd206937291861c4b558f499fc49e5c601a5d60 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 1 Sep 2023 13:18:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=A8=A1=E5=9D=97(=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=8E=89=E8=AE=A2=E5=8D=95=E5=85=B3=E9=97=AD=E5=8A=9F?= =?UTF-8?q?=E8=83=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ProOrderServiceImpl.java | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java index dda5e778..143b5dea 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProOrderServiceImpl.java @@ -156,31 +156,31 @@ public class ProOrderServiceImpl implements IProOrderService { } // 关闭订单,判断是否拆分完成 - ProOrder order = proOrderMapper.selectProOrderById(splitOrderDTO.getProduct().getId()); - Long quantitySplit = order.getQuantitySplit(); - Long quantity1 = order.getQuantity(); - if (quantity1.equals(quantitySplit)) { - // 需要关闭订单的codeList - List orderCodes = new ArrayList<>(); - // 临时存放code - StringBuilder orderCode = new StringBuilder(); - orderCode.append(order.getOrderCode()); - while(true) { - orderCodes.add(orderCode.toString()); - String selectOrderCode = proOrderMapper.selectChildProOrderCodeByCode(orderCode.toString()); - if (selectOrderCode == null) { - break; - } - orderCode.setLength(0); - orderCode.append(selectOrderCode); - } - - // 关闭订单 - for (String code : orderCodes) { - remoteSapService.sapCloseOrder(code); - } - - } +// ProOrder order = proOrderMapper.selectProOrderById(splitOrderDTO.getProduct().getId()); +// Long quantitySplit = order.getQuantitySplit(); +// Long quantity1 = order.getQuantity(); +// if (quantity1.equals(quantitySplit)) { +// // 需要关闭订单的codeList +// List orderCodes = new ArrayList<>(); +// // 临时存放code +// StringBuilder orderCode = new StringBuilder(); +// orderCode.append(order.getOrderCode()); +// while(true) { +// orderCodes.add(orderCode.toString()); +// String selectOrderCode = proOrderMapper.selectChildProOrderCodeByCode(orderCode.toString()); +// if (selectOrderCode == null) { +// break; +// } +// orderCode.setLength(0); +// orderCode.append(selectOrderCode); +// } +// +// // 关闭订单 +// for (String code : orderCodes) { +// remoteSapService.sapCloseOrder(code); +// } +// +// } return success(); }