From 70744b1e6ab6088645504c2ffd083fef82bba315 Mon Sep 17 00:00:00 2001 From: zoujiangtao Date: Mon, 23 Dec 2024 14:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=86=85=E5=AE=B9=EF=BC=9A?= =?UTF-8?q?=E6=98=9F=E7=A9=BA=E6=8E=A8=E9=80=81=E6=95=B0=E6=8D=AE=EF=BC=8C?= =?UTF-8?q?API=E6=89=A9=E5=B1=95=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=EF=BC=9A=E6=98=9F=E7=A9=BA=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8CAPI=E6=89=A9=E5=B1=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9=20=E6=8F=90=E4=BA=A4=E4=BA=BA?= =?UTF-8?q?=EF=BC=9A=E9=82=B9=E6=B1=9F=E6=B6=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/plugin/api/PayBillApiSavePlugin.java | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) 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 8b3b80f..30e5b1f 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 @@ -54,20 +54,25 @@ public class PayBillApiSavePlugin implements ApiSavePlugin { Object payertype = map.get("payertype");//如果是付款人类型 则为收款处理保存接口 if (payeetype != null) { if ("BD_Supplier".equals(payeetype)) { + payeetype = "bd_supplier"; map.put("payeetype", "bd_supplier"); map.put("payeeformid", "bd_supplier"); } else if ("BD_Customer".equals(payeetype)) { + payeetype = "bd_customer"; map.put("payeetype", "bd_customer"); map.put("payeeformid", "bd_customer"); } else if ("BD_Empinfo".equals(payeetype)) { + payeetype = "bos_user"; 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)) { + payeetype = "bos_org"; map.put("payeetype", "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 ("BD_Supplier".equals(payeetype)) { + if ("BD_Supplier".equals(payertype)) { + payertype = "bd_supplier"; map.put("payertype", "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("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("payerformid", "bos_user"); - } else if ("FIN_OTHERS".equals(payeetype)) { - map.put("payertype", "other"); - map.put("payerformid", "other"); - } else if ("ORG_Organizations".equals(payeetype)) { + } else if ("ORG_Organizations".equals(payertype)) { + payertype = "bos_org"; map.put("payertype", "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(); if (!"other".equals(objectType)) {