From 43000b07984fc3769f19769996adddb108e2e0f4 Mon Sep 17 00:00:00 2001 From: zhaoyf <1783123481@qq.com> Date: Tue, 10 Nov 2026 15:17:05 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E4=B8=AD=E9=BC=8E=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=90=8D=E7=A7=B0=EF=BC=8Cfix=EF=BC=9A?= =?UTF-8?q?=E6=8C=89=E8=A1=8C=E7=A1=AE=E8=AE=A4=E4=BA=A4=E8=B4=A7=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/nl/wms/ext_manage/api/ZDWmsApi.java | 5 +++++ .../sapDelivery/service/impl/SapDeliveryServiceImpl.java | 2 +- .../inventory/impl/StInventoryServiceImpl.java | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/nladmin-system/wms-server/src/main/java/org/nl/wms/ext_manage/api/ZDWmsApi.java b/nladmin-system/wms-server/src/main/java/org/nl/wms/ext_manage/api/ZDWmsApi.java index 60e863db..cc909dcf 100644 --- a/nladmin-system/wms-server/src/main/java/org/nl/wms/ext_manage/api/ZDWmsApi.java +++ b/nladmin-system/wms-server/src/main/java/org/nl/wms/ext_manage/api/ZDWmsApi.java @@ -250,6 +250,10 @@ public class ZDWmsApi { if (StrUtil.isNotBlank(createTime)) { body.put("createTime", createTime); } + String lifnrName = dto.getItems().get(0).getLifnr_name(); + if (StrUtil.isNotEmpty(lifnrName)){ + body.put("supplierName", lifnrName); + } body.put("status", 0); JSONArray itemList = new JSONArray(); int index = 1; @@ -328,6 +332,7 @@ public class ZDWmsApi { body.put("billType", resolveBillType(externalType)); body.put("externalType", externalType); body.put("creator", "wms"); + body.put("supplierName", order.getLifnr_name()); String createTime = formatCreateTime( order.getBldat() == null ? null : order.getBldat().toString(), order.getWadat() == null ? null : order.getWadat().toString()); diff --git a/nladmin-system/wms-server/src/main/java/org/nl/wms/pm_manage/sap/sapDelivery/service/impl/SapDeliveryServiceImpl.java b/nladmin-system/wms-server/src/main/java/org/nl/wms/pm_manage/sap/sapDelivery/service/impl/SapDeliveryServiceImpl.java index 93bf225a..c5ad0ebc 100644 --- a/nladmin-system/wms-server/src/main/java/org/nl/wms/pm_manage/sap/sapDelivery/service/impl/SapDeliveryServiceImpl.java +++ b/nladmin-system/wms-server/src/main/java/org/nl/wms/pm_manage/sap/sapDelivery/service/impl/SapDeliveryServiceImpl.java @@ -474,7 +474,7 @@ public class SapDeliveryServiceImpl implements SapDeliveryService { ReceiptConfirmBody body = new ReceiptConfirmBody(); body.setBldat(formatSapDate(order.getBldat(), today)); body.setBudat(today); - body.setBktxt("WMS_IN_" + order.getVbeln()); + body.setBktxt("WMS_IN_" + items.get(0).getId() + order.getVbeln()); body.setItems(buildConfirmItems(order.getVbeln(), items)); request.setBody(java.util.Collections.singletonList(body)); return request; diff --git a/nladmin-system/wms-server/src/main/java/org/nl/wms/warehouse_manage/inventory/impl/StInventoryServiceImpl.java b/nladmin-system/wms-server/src/main/java/org/nl/wms/warehouse_manage/inventory/impl/StInventoryServiceImpl.java index be2f2fe4..4f3e92b8 100644 --- a/nladmin-system/wms-server/src/main/java/org/nl/wms/warehouse_manage/inventory/impl/StInventoryServiceImpl.java +++ b/nladmin-system/wms-server/src/main/java/org/nl/wms/warehouse_manage/inventory/impl/StInventoryServiceImpl.java @@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import lombok.extern.slf4j.Slf4j; -import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.nl.common.exception.BadRequestException; import org.nl.common.utils.IdUtil; @@ -298,10 +297,11 @@ public class StInventoryServiceImpl implements IStInventoryService { LambdaQueryWrapper query = new QueryWrapper().lambda() .eq(GroupPlate::getStoragevehicle_code, invParam.getStoragevehicleCode()) .eq(GroupPlate::getMaterial_code, invParam.getMaterialCode()) + .eq(GroupPlate::getExt_code, invParam.getExtCode()) .eq(GroupPlate::getStatus, GROUP_PLATE_STATUS.code("入库")); if (!StringUtils.isEmpty(invParam.getPcsn())) query.eq(GroupPlate::getPcsn, invParam.getPcsn()); - GroupPlate groupPlate = iMdPbGroupplateService.getOne(query); - if (ObjectUtils.isNotEmpty(groupPlate)) { + List groupPlateList = iMdPbGroupplateService.list(query); + for (GroupPlate groupPlate : groupPlateList) { //添加库存变动记录 StIvtStructivtflow record = new StIvtStructivtflow(); record.setId(IdUtil.getStringId());