diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java index 083ec73..8b3b80f 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/api/PayBillApiSavePlugin.java @@ -53,6 +53,24 @@ public class PayBillApiSavePlugin implements ApiSavePlugin { Object payeetype = map.get("payeetype");//如果是收款人类型 则为付款处理保存接口 Object payertype = map.get("payertype");//如果是付款人类型 则为收款处理保存接口 if (payeetype != null) { + if ("BD_Supplier".equals(payeetype)) { + map.put("payeetype", "bd_supplier"); + map.put("payeeformid", "bd_supplier"); + } else if ("BD_Customer".equals(payeetype)) { + map.put("payeetype", "bd_customer"); + map.put("payeeformid", "bd_customer"); + } else if ("BD_Empinfo".equals(payeetype)) { + map.put("payeetype", "bos_user"); + map.put("payeeformid", "bos_user"); + } else if ("FIN_OTHERS".equals(payeetype)) { + map.put("payeetype", "other"); + map.put("payeeformid", "other"); + } else if ("ORG_Organizations".equals(payeetype)) { + map.put("payeetype", "bos_org"); + map.put("payeeformid", "bos_org"); + } + + logger.info("进入付款处理单API"); //收款人类型 objectType = payeetype.toString(); @@ -88,6 +106,22 @@ public class PayBillApiSavePlugin implements ApiSavePlugin { } if (payertype != null) { + if ("BD_Supplier".equals(payeetype)) { + map.put("payertype", "bd_supplier"); + map.put("payerformid", "bd_supplier"); + } else if ("BD_Customer".equals(payeetype)) { + map.put("payertype", "bd_customer"); + map.put("payerformid", "bd_customer"); + } else if ("BD_Empinfo".equals(payeetype)) { + map.put("payertype", "bos_user"); + map.put("payerformid", "bos_user"); + } else if ("FIN_OTHERS".equals(payeetype)) { + map.put("payertype", "other"); + map.put("payerformid", "other"); + } else if ("ORG_Organizations".equals(payeetype)) { + map.put("payertype", "bos_org"); + map.put("payerformid", "bos_org"); + } objectType = payertype.toString(); if (!"other".equals(objectType)) { objectNumber = map.get("payernumber").toString();