From bad9352addd8aa5f0e891987edd9a1189bc5ae1e Mon Sep 17 00:00:00 2001 From: zoujiangtao Date: Mon, 23 Dec 2024 10:38:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=86=85=E5=AE=B9=EF=BC=9A?= =?UTF-8?q?=E9=93=B6=E4=BC=81=E4=BA=A4=E6=98=93=E6=98=8E=E7=BB=86=EF=BC=8C?= =?UTF-8?q?=E7=94=B5=E5=AD=90=E5=9B=9E=E5=8D=95=E6=9F=A5=E8=AF=A2=E6=8E=A8?= =?UTF-8?q?=E9=80=81BIP=20=E5=A4=87=E6=B3=A8=EF=BC=9A=E9=93=B6=E4=BC=81?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E6=98=8E=E7=BB=86=EF=BC=8C=E7=94=B5=E5=AD=90?= =?UTF-8?q?=E5=9B=9E=E5=8D=95=E6=9F=A5=E8=AF=A2=E6=8E=A8=E9=80=81BIP=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=BA=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 | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) 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();