From 30e29f01a5dcb9b59a9004001d0476b5306c0c8d Mon Sep 17 00:00:00 2001 From: ljw Date: Fri, 29 Nov 2024 17:09:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=E5=87=BA=E5=8F=A3=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exportinvoice/op/ExportInvoiceSaveOP.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/yem/wm/es/exportinvoice/op/ExportInvoiceSaveOP.java b/src/main/java/com/yem/wm/es/exportinvoice/op/ExportInvoiceSaveOP.java index 99793297..5427ec04 100644 --- a/src/main/java/com/yem/wm/es/exportinvoice/op/ExportInvoiceSaveOP.java +++ b/src/main/java/com/yem/wm/es/exportinvoice/op/ExportInvoiceSaveOP.java @@ -35,15 +35,6 @@ public class ExportInvoiceSaveOP extends AbstractOperationServicePlugIn { @Override public void beginOperationTransaction(BeginOperationTransactionArgs e) { - DynamicObject[] dataEntities = e.getDataEntities(); - for (DynamicObject dt : dataEntities) { - // setOutForm(dt); - } - } - - @Override - public void endOperationTransaction(EndOperationTransactionArgs e) { - super.endOperationTransaction(e); DynamicObject[] dataEntities = e.getDataEntities(); for (DynamicObject dataEntitie : dataEntities) { DynamicObjectCollection yemEsMaterialinfo = dataEntitie.getDynamicObjectCollection("yem_es_materialinfo"); @@ -103,10 +94,18 @@ public class ExportInvoiceSaveOP extends AbstractOperationServicePlugIn { yemDestports.append(string);//目的港 } } - dataEntitie.set("yem_remark", ":" + yemTradeway + " 成交总额:" + yemSettlement + totalAmount + " 汇率:" + yemExrate + " 海运费:" + dataEntitie.set("yem_remark", yemTradeway + " 成交总额:" + yemSettlement + totalAmount + " 汇率:" + yemExrate + " 海运费:" + yemseatransfeecurr + yemSeatransfee + " 保险费:" + yeminsurefeecurr + yemInsurefee + " 提单号:" + yemLadbillnum + " 合同号:" + queryString + " 起运港:" + yemShipports + " 目的港:" + yemDestports); } + } + } + + @Override + public void endOperationTransaction(EndOperationTransactionArgs e) { + super.endOperationTransaction(e); + DynamicObject[] dataEntities = e.getDataEntities(); + for (DynamicObject dataEntitie : dataEntities) { Map map = new HashMap<>(); Map seqs = new HashMap<>(); Set ids = new HashSet<>();