提交内容:星空推送数据,API扩展接口修改

备注:星空推送数据,API扩展接口修改
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-23 14:26:36 +08:00
parent 58d08520f8
commit 70744b1e6a
1 changed files with 20 additions and 10 deletions

View File

@ -54,20 +54,25 @@ public class PayBillApiSavePlugin implements ApiSavePlugin {
Object payertype = map.get("payertype");//如果是付款人类型 则为收款处理保存接口 Object payertype = map.get("payertype");//如果是付款人类型 则为收款处理保存接口
if (payeetype != null) { if (payeetype != null) {
if ("BD_Supplier".equals(payeetype)) { if ("BD_Supplier".equals(payeetype)) {
payeetype = "bd_supplier";
map.put("payeetype", "bd_supplier"); map.put("payeetype", "bd_supplier");
map.put("payeeformid", "bd_supplier"); map.put("payeeformid", "bd_supplier");
} else if ("BD_Customer".equals(payeetype)) { } else if ("BD_Customer".equals(payeetype)) {
payeetype = "bd_customer";
map.put("payeetype", "bd_customer"); map.put("payeetype", "bd_customer");
map.put("payeeformid", "bd_customer"); map.put("payeeformid", "bd_customer");
} else if ("BD_Empinfo".equals(payeetype)) { } else if ("BD_Empinfo".equals(payeetype)) {
payeetype = "bos_user";
map.put("payeetype", "bos_user"); map.put("payeetype", "bos_user");
map.put("payeeformid", "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)) { } else if ("ORG_Organizations".equals(payeetype)) {
payeetype = "bos_org";
map.put("payeetype", "bos_org"); map.put("payeetype", "bos_org");
map.put("payeeformid", "bos_org"); map.put("payeeformid", "bos_org");
} else if ("FIN_OTHERS".equals(payeetype)) {
payeetype = "other";
map.put("payeetype", "other");
map.put("payeeformid", "other");
} }
@ -106,21 +111,26 @@ public class PayBillApiSavePlugin implements ApiSavePlugin {
} }
if (payertype != null) { if (payertype != null) {
if ("BD_Supplier".equals(payeetype)) { if ("BD_Supplier".equals(payertype)) {
payertype = "bd_supplier";
map.put("payertype", "bd_supplier"); map.put("payertype", "bd_supplier");
map.put("payerformid", "bd_supplier"); map.put("payerformid", "bd_supplier");
} else if ("BD_Customer".equals(payeetype)) { } else if ("BD_Customer".equals(payertype)) {
payertype = "bd_customer";
map.put("payertype", "bd_customer"); map.put("payertype", "bd_customer");
map.put("payerformid", "bd_customer"); map.put("payerformid", "bd_customer");
} else if ("BD_Empinfo".equals(payeetype)) { } else if ("BD_Empinfo".equals(payertype)) {
payertype = "bos_user";
map.put("payertype", "bos_user"); map.put("payertype", "bos_user");
map.put("payerformid", "bos_user"); map.put("payerformid", "bos_user");
} else if ("FIN_OTHERS".equals(payeetype)) { } else if ("ORG_Organizations".equals(payertype)) {
map.put("payertype", "other"); payertype = "bos_org";
map.put("payerformid", "other");
} else if ("ORG_Organizations".equals(payeetype)) {
map.put("payertype", "bos_org"); map.put("payertype", "bos_org");
map.put("payerformid", "bos_org"); map.put("payerformid", "bos_org");
} else if ("FIN_OTHERS".equals(payertype)) {
payertype = "other";
map.put("payertype", "other");
map.put("payerformid", "other");
} }
objectType = payertype.toString(); objectType = payertype.toString();
if (!"other".equals(objectType)) { if (!"other".equals(objectType)) {