From 0289611ec02d5c05c394576f834218a261cbeabf Mon Sep 17 00:00:00 2001 From: ljw Date: Sat, 11 Jan 2025 20:42:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E5=87=BA=E5=8F=A3=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E4=BF=9D=E5=AD=98=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yem/wm/es/exportinvoice/op/ExportInvoiceSaveOP.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 75c335b9..e2dffc0b 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 @@ -81,14 +81,14 @@ public class ExportInvoiceSaveOP extends AbstractOperationServicePlugIn { String yemLadbillnum = dataEntitie.getString("yem_ladbillnum");//提单号 // queryString//合同号 DynamicObjectCollection yem_shipports = dataEntitie.getDynamicObjectCollection("yem_shipports");//起运港 - if (yem_shipports != null) { + if (!YEM.isEmpty(yem_shipports)) { for (DynamicObject yemShipport : yem_shipports) { String ssa = yemShipport.getDynamicObject("fbasedataid").getString("name");//起运港 yemShipports.append(ssa); } } DynamicObjectCollection yem_Destports = dataEntitie.getDynamicObjectCollection("yem_destports");//目的港 - if (yem_Destports != null) { + if (!YEM.isEmpty(yem_Destports)) { for (DynamicObject yemShipport : yem_Destports) { String string = yemShipport.getDynamicObject("fbasedataid").getString("name"); yemDestports.append(string);//目的港