From 51d3005749cce876616de161d1df33ef2fce8182 Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Mon, 26 Feb 2024 09:47:08 +0800 Subject: [PATCH] =?UTF-8?q?wms=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/op/wms/domain/OdsProcureOutOrder.java | 9 +++++++++ .../java/com/op/wms/mapper/OdsProcureOutOrderMapper.java | 2 ++ .../op/wms/service/impl/OdsProcureOrderServiceImpl.java | 7 ++++--- .../resources/mapper/wms/OdsProcureOutOrderMapper.xml | 8 ++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java b/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java index 4376441c..8649e854 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/domain/OdsProcureOutOrder.java @@ -154,6 +154,15 @@ public class OdsProcureOutOrder extends BaseEntity { */ @Excel(name = "用户自定义属性2") private String userDefined2; + private String workorderCode; + + public String getWorkorderCode() { + return workorderCode; + } + + public void setWorkorderCode(String workorderCode) { + this.workorderCode = workorderCode; + } /** * 用户自定义属性3 diff --git a/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java b/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java index c0270701..435e794c 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/mapper/OdsProcureOutOrderMapper.java @@ -82,4 +82,6 @@ public interface OdsProcureOutOrderMapper { List selectOdsProcureOutOrderListZUKEN(OdsProcureOutOrder order); List selectOdsProcureOutOrderListZUKENX(OdsProcureOutOrder order); + + String selectMachineCode(@Param("order")OdsProcureOutOrder odsProcureOutOrder); } 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 c90523f9..a51a541c 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 @@ -284,14 +284,15 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService { public OdsProcureOutOrder PurchaseOrderOutboundPda(OdsProcureOutOrder odsProcureOrder) { //母单,其中list里面是对应的子单 OdsProcureOutOrder odsProcureOutOrder = odsProcureOutOrderMapper.selectmesPrepare(odsProcureOrder); - + String machine= odsProcureOutOrderMapper.selectMachineCode(odsProcureOutOrder); if (odsProcureOutOrder != null) { List orderList = odsProcureOutOrderMapper.selectmesPrepareDetail(odsProcureOutOrder); + for (OdsProcureOutOrder order:orderList){ + order.setProductionLineCode(machine); + } odsProcureOutOrder.setList(orderList); } - return odsProcureOutOrder; - } @Override diff --git a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml index 7a85958b..f87df429 100644 --- a/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml +++ b/op-modules/op-wms/src/main/resources/mapper/wms/OdsProcureOutOrderMapper.xml @@ -39,6 +39,7 @@ + limit #{page.pageOffset} , #{page.rows} @@ -263,6 +264,7 @@ SELECT prepare_id id, workorder_name Produce_Code, + workorder_code workorderCode, product_code Material_Code, product_name Material_Desc, unit Unit, @@ -396,4 +398,10 @@ #{item.userDefined1} +