From 0b6a8d98c56774f003bff9252d2bad43a82c5de6 Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Fri, 12 Jul 2024 10:39:05 +0800 Subject: [PATCH] =?UTF-8?q?wms=E9=87=87=E8=B4=AD=E6=8F=90=E5=8D=95-?= =?UTF-8?q?=E9=80=81=E8=B4=A7=E5=8D=95=E6=8F=90=E5=8D=95--=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/OdsProcureOrderServiceImpl.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java index 7fcabdf4..563178f3 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java @@ -794,23 +794,15 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService { mapList= (List>) result.get("data"); for (Map sapPurchaseOrderQuery1 : mapList) { OdsProcureOrder order = new OdsProcureOrder(); - // 获取 orderId 和 mainId - Object orderIdObj = sapPurchaseOrderQuery1.get("orderId"); + // 获取 mainId Object mainIdObj = sapPurchaseOrderQuery1.get("mainId"); - // 将 Object 转换为 String - String orderId = (orderIdObj != null) ? orderIdObj.toString() : null; String mainId = (mainIdObj != null) ? mainIdObj.toString() : null; - // 判断并补全 orderId - if (orderId != null && orderId.length() < 8) { - orderId = String.format("%08d", Integer.parseInt(orderId)); - } - // 判断并补全 mainId if (mainId != null && mainId.length() < 8) { mainId = String.format("%08d", Integer.parseInt(mainId)); } - order.setProcureCode(orderId); + order.setProcureCode(sapPurchaseOrderQuery1.get("orderNum")); order.setSiteCode(sapPurchaseOrderQuery1.get("werks")); //order.setUserDefined3(sapPurchaseOrderQuery1.get("ebelp"));//批次 order.setMaterialCode(sapPurchaseOrderQuery1.get("matnr")); @@ -820,7 +812,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService { if (orderList.size() > 0) { continue; } - order.setUserDefined5(mainId); + order.setUserDefined5(mainId);//送货单 order.setPlanNumber(new BigDecimal(sapPurchaseOrderQuery1.get("thisDeliNum"))); order.setUnit(sapPurchaseOrderQuery1.get("unit")); order.setSupplierCode(sapPurchaseOrderQuery1.get("lifnr"));