修改人:邹江涛

修改内容:API映射公共单据
修改时间:2024/12/04
This commit is contained in:
zoujiangtao 2024-12-04 10:09:59 +08:00
parent 0648da693d
commit ad26028cc1
1 changed files with 7 additions and 3 deletions

View File

@ -235,6 +235,7 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
private void processFloor(JSONObject parentJson, String parentKey, List<DynamicObject> currentFloor, List<List<DynamicObject>> 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)) {