From ad26028cc138f1eb11051cf10549e747f2cb4f81 Mon Sep 17 00:00:00 2001 From: zoujiangtao Date: Wed, 4 Dec 2024 10:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BA=EF=BC=9A=E9=82=B9?= =?UTF-8?q?=E6=B1=9F=E6=B6=9B=20=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9?= =?UTF-8?q?=EF=BC=9AAPI=E6=98=A0=E5=B0=84=E5=85=AC=E5=85=B1=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=20=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4=EF=BC=9A2024/1?= =?UTF-8?q?2/04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 eeca86a..bd04a32 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 @@ -235,6 +235,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { private void processFloor(JSONObject parentJson, String parentKey, List currentFloor, List> floors, DynamicObject dynamic) { if (currentFloor.isEmpty()) { + logger.info("currentFloor.isEmpty()"); return; } @@ -251,10 +252,11 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { for (DynamicObject dynamicObject : currentFloor) { String key = dynamicObject.getString("shkd_tarfield"); Object shkd_soufield = dynamicObject.get("shkd_soufield"); + logger.info("shkd_soufield: {}", shkd_soufield); Object value = null; if (shkd_soufield != null && !"".equals(shkd_soufield)) { String[] parts = shkd_soufield.toString().split("\\."); - logger.info("dynamic:{}\nshkd_soufield:{}\nparts: {}", dynamic, shkd_soufield, Arrays.toString(parts)); + logger.info("dynamic:{}\nparts: {}", dynamic, Arrays.toString(parts)); if (parts.length == 1) { if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) { String objectType = dynamic.getString(parts[0]); @@ -296,7 +298,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { } else { value = dynamicObject.get("shkd_defaultdata"); } - + logger.info("key: {}, value: {}", key, value); String tartype = dynamicObject.getString("shkd_tartype"); if ("string".equals(tartype) || "date".equals(tartype)) { @@ -323,10 +325,11 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { for (DynamicObject dynamicObject : currentFloor) { String key = dynamicObject.getString("shkd_tarfield"); Object shkd_soufield = dynamicObject.get("shkd_soufield"); + logger.info("shkd_soufield: {}", shkd_soufield); Object value = null; if (shkd_soufield != null && !"".equals(shkd_soufield)) { String[] parts = shkd_soufield.toString().split("\\."); - logger.info("dynamic:{}\nshkd_soufield:{}\nparts: {}", dynamic, shkd_soufield, Arrays.toString(parts)); + logger.info("dynamic:{}\nparts: {}", dynamic, Arrays.toString(parts)); if (parts.length == 1) { if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) { String objectType = dynamic.getString(parts[0]); @@ -368,6 +371,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { } else { value = dynamicObject.get("shkd_defaultdata"); } + logger.info("key: {}, value: {}", key, value); String tartype = dynamicObject.getString("shkd_tartype"); if ("string".equals(tartype) || "date".equals(tartype)) {