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 e2dffc0b..75c335b9 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.isEmpty(yem_shipports)) { + if (yem_shipports != null) { for (DynamicObject yemShipport : yem_shipports) { String ssa = yemShipport.getDynamicObject("fbasedataid").getString("name");//起运港 yemShipports.append(ssa); } } DynamicObjectCollection yem_Destports = dataEntitie.getDynamicObjectCollection("yem_destports");//目的港 - if (!YEM.isEmpty(yem_Destports)) { + if (yem_Destports != null) { for (DynamicObject yemShipport : yem_Destports) { String string = yemShipport.getDynamicObject("fbasedataid").getString("name"); yemDestports.append(string);//目的港