From 30ac787aa49b247f713b1f5f719bb5b4e29982c5 Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Tue, 19 Sep 2023 14:57:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B9=BF=E6=96=99=E8=AE=A1=E5=88=92(=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BC=98=E5=8C=96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/op/plan/domain/BaseProduct.java | 10 +++++ .../impl/ProWhiteOrderServiceImpl.java | 38 +++++++++---------- .../mapper/plan/BaseProductMapper.xml | 4 +- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/op-modules/op-plan/src/main/java/com/op/plan/domain/BaseProduct.java b/op-modules/op-plan/src/main/java/com/op/plan/domain/BaseProduct.java index da27ed38..8c01b1f1 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/domain/BaseProduct.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/domain/BaseProduct.java @@ -5,6 +5,7 @@ public class BaseProduct { private String productId; private String productCode; private String productDescZh; + private String mtart; @Override public String toString() { @@ -12,6 +13,7 @@ public class BaseProduct { "productId='" + productId + '\'' + ", productCode='" + productCode + '\'' + ", productDescZh='" + productDescZh + '\'' + + ", mtart='" + mtart + '\'' + '}'; } @@ -39,6 +41,14 @@ public class BaseProduct { this.productDescZh = productDescZh; } + public String getMtart() { + return mtart; + } + + public void setMtart(String mtart) { + this.mtart = mtart; + } + public BaseProduct() { } } diff --git a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProWhiteOrderServiceImpl.java b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProWhiteOrderServiceImpl.java index 2bed9f87..491772c3 100644 --- a/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProWhiteOrderServiceImpl.java +++ b/op-modules/op-plan/src/main/java/com/op/plan/service/impl/ProWhiteOrderServiceImpl.java @@ -115,23 +115,23 @@ public class ProWhiteOrderServiceImpl implements IProWhiteOrderService { proOrder.setProdDesc(""); proWhiteOrderMapper.insertProOrder(proOrder); - System.out.println("源code---->"+proOrder.getProdCode()); - System.out.println("源desc---->"+proOrder.getProdDesc()); - - System.out.println("code---------->"); - for (String code : prodCodes) { - System.out.println(code); - } - System.out.println("desc----------->"); - for (String desc : prodDescs) { - System.out.println(desc); - } - - System.out.println("这里是母订单信息"); - System.out.println("母订单code"+proOrder.getOrderCode()); - - - System.out.println("这里是子订单信息"); +// System.out.println("源code---->"+proOrder.getProdCode()); +// System.out.println("源desc---->"+proOrder.getProdDesc()); +// +// System.out.println("code---------->"); +// for (String code : prodCodes) { +// System.out.println(code); +// } +// System.out.println("desc----------->"); +// for (String desc : prodDescs) { +// System.out.println(desc); +// } +// +// System.out.println("这里是母订单信息"); +// System.out.println("母订单code"+proOrder.getOrderCode()); +// +// +// System.out.println("这里是子订单信息"); // 设置子订单信息 for (int i = 0; i< prodCodes.length; i++){ @@ -159,8 +159,8 @@ public class ProWhiteOrderServiceImpl implements IProWhiteOrderService { // 将子订单插入数据库 proWhiteOrderMapper.insertProOrder(childProOrder); - System.out.println("子订单code"+i+childProOrder.getOrderCode()); - System.out.println("子订单parentCode"+i+childProOrder.getParentOrder()); +// System.out.println("子订单code"+i+childProOrder.getOrderCode()); +// System.out.println("子订单parentCode"+i+childProOrder.getParentOrder()); } return 1; diff --git a/op-modules/op-plan/src/main/resources/mapper/plan/BaseProductMapper.xml b/op-modules/op-plan/src/main/resources/mapper/plan/BaseProductMapper.xml index 5669ebf6..0926e09e 100644 --- a/op-modules/op-plan/src/main/resources/mapper/plan/BaseProductMapper.xml +++ b/op-modules/op-plan/src/main/resources/mapper/plan/BaseProductMapper.xml @@ -8,17 +8,19 @@ + - select product_id,product_code, product_desc_zh from base_product + select product_id,product_code, product_desc_zh,mtart from base_product