优化推送OA供应商

This commit is contained in:
weiyunlong 2024-11-20 13:43:15 +08:00
parent 2d302f91d3
commit d80e5667a3
1 changed files with 12 additions and 3 deletions

View File

@ -77,7 +77,10 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
String code = official_supplier.getString("qeug_oacode"); String code = official_supplier.getString("qeug_oacode");
String name = official_supplier.getString("name"); 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 shortname = official_supplier.getString("simplename");
String legalbody = official_supplier.getString("artificialperson"); String legalbody = official_supplier.getString("artificialperson");
Date createTime = official_supplier.getDate("createtime"); Date createTime = official_supplier.getDate("createtime");
@ -89,7 +92,13 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
customerBody = new JSONObject(); customerBody = new JSONObject();
customerBody.put("code", code);//"客户编码传递OA回执的code如果没有则为空OA判断新增后返回code", customerBody.put("code", code);//"客户编码传递OA回执的code如果没有则为空OA判断新增后返回code",
customerBody.put("name", name);//"客户名称", 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("shortname", shortname);//"客户简称",
customerBody.put("custprop", "0");//"客户类型默认0", customerBody.put("custprop", "0");//"客户类型默认0",
customerBody.put("enablestate", "2");//"客户状态默认2", customerBody.put("enablestate", "2");//"客户状态默认2",
@ -118,7 +127,7 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
} }
custBankaccBody.put("accname", entry_bank.getString("accountname"));//"银行账号名称", custBankaccBody.put("accname", entry_bank.getString("accountname"));//"银行账号名称",
custBankaccBody.put("pk_banktype", "");//todo:"银行类别:例如招商银行", custBankaccBody.put("pk_banktype", "");//todo:"银行类别:例如招商银行",
String persontype = entry_bank.getString("persontype");//法人类型 // String persontype = entry_bank.getString("persontype");//法人类型
//法人企业 LEGALENTERPRISE //法人企业 LEGALENTERPRISE
//非法人企业 UNINCORPORATED //非法人企业 UNINCORPORATED
//非企业单位 NONENTERPRISE //非企业单位 NONENTERPRISE