diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java index e0caeb6..eeca86a 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java @@ -252,9 +252,9 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { String key = dynamicObject.getString("shkd_tarfield"); Object shkd_soufield = dynamicObject.get("shkd_soufield"); Object value = null; - if (shkd_soufield != null) { + if (shkd_soufield != null && !"".equals(shkd_soufield)) { String[] parts = shkd_soufield.toString().split("\\."); - logger.info("dynamic:{}\nparts: {}", dynamic, Arrays.toString(parts)); + logger.info("dynamic:{}\nshkd_soufield:{}\nparts: {}", dynamic, shkd_soufield, Arrays.toString(parts)); if (parts.length == 1) { if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) { String objectType = dynamic.getString(parts[0]); @@ -324,9 +324,9 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { String key = dynamicObject.getString("shkd_tarfield"); Object shkd_soufield = dynamicObject.get("shkd_soufield"); Object value = null; - if (shkd_soufield != null) { + if (shkd_soufield != null && !"".equals(shkd_soufield)) { String[] parts = shkd_soufield.toString().split("\\."); - logger.info("dynamic:{}\nparts: {}", dynamic, Arrays.toString(parts)); + logger.info("dynamic:{}\nshkd_soufield:{}\nparts: {}", dynamic, shkd_soufield, Arrays.toString(parts)); if (parts.length == 1) { if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) { String objectType = dynamic.getString(parts[0]);