From d80e5667a3f59ac1650e16e8870329d84807adfd Mon Sep 17 00:00:00 2001 From: weiyunlong Date: Wed, 20 Nov 2024 13:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E9=80=81OA=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resm/opplugin/PushOASupplierOPPlugin.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java b/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java index 790517f..2faec44 100644 --- a/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java +++ b/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java @@ -77,7 +77,10 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn { String code = official_supplier.getString("qeug_oacode"); String name = official_supplier.getString("name"); - String taxpayerid = official_supplier.getString("tx_register_no"); + String taxpayerid = official_supplier.getString("tx_register_no");//纳税人识别号 + String societycreditcode = official_supplier.getString("societycreditcode");//统一社会信用代码 + String artificialpersoncard = official_supplier.getString("artificialpersoncard");//法人代表身份证号码 + String persontype = official_supplier.getString("persontype");//法人类型 String shortname = official_supplier.getString("simplename"); String legalbody = official_supplier.getString("artificialperson"); Date createTime = official_supplier.getDate("createtime"); @@ -89,7 +92,13 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn { customerBody = new JSONObject(); customerBody.put("code", code);//"客户编码:传递OA回执的code,如果没有则为空,OA判断新增后返回code", customerBody.put("name", name);//"客户名称", - customerBody.put("taxpayerid", taxpayerid);//"纳税人登记号/身份证号 唯一值不可变", + //PERSONAL 个人 + if ("PERSONAL".equals(persontype)) { + customerBody.put("taxpayerid", artificialpersoncard);//"纳税人登记号/身份证号 唯一值不可变", + }else { + customerBody.put("taxpayerid", societycreditcode);//"纳税人登记号/身份证号 唯一值不可变", + + } customerBody.put("shortname", shortname);//"客户简称", customerBody.put("custprop", "0");//"客户类型:默认0", customerBody.put("enablestate", "2");//"客户状态:默认2", @@ -118,7 +127,7 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn { } custBankaccBody.put("accname", entry_bank.getString("accountname"));//"银行账号名称", custBankaccBody.put("pk_banktype", "");//todo:"银行类别:例如招商银行", - String persontype = entry_bank.getString("persontype");//法人类型 +// String persontype = entry_bank.getString("persontype");//法人类型 //法人企业 LEGALENTERPRISE //非法人企业 UNINCORPORATED //非企业单位 NONENTERPRISE