优化推送OA供应商
This commit is contained in:
parent
2d302f91d3
commit
d80e5667a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue