修改人:邹江涛

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

View File

@ -252,9 +252,9 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
String key = dynamicObject.getString("shkd_tarfield"); String key = dynamicObject.getString("shkd_tarfield");
Object shkd_soufield = dynamicObject.get("shkd_soufield"); Object shkd_soufield = dynamicObject.get("shkd_soufield");
Object value = null; Object value = null;
if (shkd_soufield != null) { if (shkd_soufield != null && !"".equals(shkd_soufield)) {
String[] parts = shkd_soufield.toString().split("\\."); 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 (parts.length == 1) {
if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) { if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) {
String objectType = dynamic.getString(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"); String key = dynamicObject.getString("shkd_tarfield");
Object shkd_soufield = dynamicObject.get("shkd_soufield"); Object shkd_soufield = dynamicObject.get("shkd_soufield");
Object value = null; Object value = null;
if (shkd_soufield != null) { if (shkd_soufield != null && !"".equals(shkd_soufield)) {
String[] parts = shkd_soufield.toString().split("\\."); 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 (parts.length == 1) {
if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) { if ("payeetype".equals(parts[0]) || "payertype".equals(parts[0])) {
String objectType = dynamic.getString(parts[0]); String objectType = dynamic.getString(parts[0]);